From: Marcelo Tosatti Date: Wed, 17 Feb 2010 22:14:40 +0000 (-0200) Subject: block SIGCHLD in vcpu thread(s) X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=adc8c965c401ec3becc14eabf7a5a6ba7a002f46;p=qemu.git block SIGCHLD in vcpu thread(s) Otherwise a vcpu thread can run the sigchild handler causing waitpid() from iothread to fail. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- diff --git a/vl.c b/vl.c index 1957018cf6..3bc618dd39 100644 --- a/vl.c +++ b/vl.c @@ -3515,6 +3515,7 @@ static void block_io_signals(void) sigaddset(&set, SIGUSR2); sigaddset(&set, SIGIO); sigaddset(&set, SIGALRM); + sigaddset(&set, SIGCHLD); pthread_sigmask(SIG_BLOCK, &set, NULL); sigemptyset(&set);