OSDN Git Service

iohandler.c: Properly initialize sigaction struct
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 16 May 2014 13:00:03 +0000 (14:00 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 23 May 2014 20:07:29 +0000 (00:07 +0400)
commitaef553fdcabbea8760cd4647ab14859095300023
tree40849a5877bda3fdae17ab1f77a4d480514216b9
parent78a4b8d2051bff8e8794e9419b7925122212b096
iohandler.c: Properly initialize sigaction struct

The code in qemu_init_child_watch() wasn't clearing the 'struct
sigaction' before passing it to sigaction(); this meant that we
would block a random set of signals while executing the SIGCHLD
handler. Initialize properly by using memset() on the struct,
as we do in similar cases elsewhere.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
iohandler.c