aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2010-02-17 20:14:40 -0200
committerAvi Kivity <avi@redhat.com>2010-02-22 10:58:33 +0200
commitadc8c965c401ec3becc14eabf7a5a6ba7a002f46 (patch)
treee940af83a1d583bb2222c35382e1de2bacbbfba8 /vl.c
parent62f734a0d57306523e6ba0e7bd606e0d55449671 (diff)
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 <mtosa...@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c1
1 files changed, 1 insertions, 0 deletions
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);