|
From: | Paolo Bonzini |
Subject: | [Qemu-devel] Re: [PATCH] Use sigwait instead og sigwaitinfo. |
Date: | Thu, 17 Feb 2011 18:06:02 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 |
On 02/17/2011 05:24 PM, Tristan Gingold wrote:
- siginfo_t siginfo; + int sig; - err = sigwaitinfo(&info->mask,&siginfo); + err = sigwait(&info->mask,&sig);
This is doable but the patch is wrong, after sigwaitinfo "err" is the signal number, so you should replace
memcpy(buffer, &err, sizeof(err)); further down with memcpy(buffer, &sig, sizeof(sig)); Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |