Patchwork [4/8] block SIGCHLD in vcpu thread(s)

login
register
mail settings
Submitter Marcelo Tosatti
Date Feb. 22, 2010, 9:26 p.m.
Message ID <adc8c965c401ec3becc14eabf7a5a6ba7a002f46.1266874009.git.mtosatti@redhat.com>
Download mbox | patch
Permalink /patch/46016/
State New
Headers show

Comments

Marcelo Tosatti - Feb. 22, 2010, 9:26 p.m.
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>
---
 vl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/vl.c b/vl.c
index 1957018..3bc618d 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);