Re: [Qemu-devel] [PATCH v6 1/5] shutdown: Simplify shutdown_signal

2017-05-05 Thread Alistair Francis
On Fri, May 5, 2017 at 12:38 PM, Eric Blake wrote: > There is no signal 0 (kill(pid, 0) has special semantics to probe whether > a process is alive), rather than actually sending a signal 0). So we > can use the simpler 0, instead of -1, for our sentinel of whether a > shutdown request due to a s

[Qemu-devel] [PATCH v6 1/5] shutdown: Simplify shutdown_signal

2017-05-05 Thread Eric Blake
There is no signal 0 (kill(pid, 0) has special semantics to probe whether a process is alive), rather than actually sending a signal 0). So we can use the simpler 0, instead of -1, for our sentinel of whether a shutdown request due to a signal has happened. Suggested-by: Markus Armbruster Signed