qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [patch 1/2] qemu: block SIGCHLD in vcpu thread(s)


From: Marcelo Tosatti
Subject: [Qemu-devel] [patch 1/2] qemu: block SIGCHLD in vcpu thread(s)
Date: Thu, 22 Oct 2009 17:38:17 -0200
User-agent: quilt/0.47-1

Otherwise a vcpu thread can run the sigchild handler causing
waitpid() from iothread to fail.

Signed-off-by: Marcelo Tosatti <address@hidden>

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);






reply via email to

[Prev in Thread] Current Thread [Next in Thread]