[1/2] qemu: block SIGCHLD in vcpu thread(s)

Message ID 20091022193912.063620036@redhat.com
State New
Headers show

Commit Message

Marcelo Tosatti Oct. 22, 2009, 7:38 p.m.
Otherwise a vcpu thread can run the sigchild handler causing
waitpid() from iothread to fail.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>


Index: qemu/vl.c
--- qemu.orig/vl.c
+++ qemu/vl.c
@@ -3722,6 +3722,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);