From adc8c965c401ec3becc14eabf7a5a6ba7a002f46 Mon Sep 17 00:00:00 2001 From: Marcelo Tosatti Date: Wed, 17 Feb 2010 20:14:40 -0200 Subject: [PATCH] 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 --- vl.c | 1 + 1 file changed, 1 insertion(+) 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);