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

login
register
mail settings
Submitter Marcelo Tosatti
Date Oct. 22, 2009, 7:38 p.m.
Message ID <20091022193912.063620036@redhat.com>
Download mbox | patch
Permalink /patch/36743/
State New
Headers show

Comments

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>

Patch

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);
 
     sigemptyset(&set);