projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62f734a
)
block SIGCHLD in vcpu thread(s)
author
Marcelo Tosatti
<mtosatti@redhat.com>
Wed, 17 Feb 2010 22:14:40 +0000
(20:14 -0200)
committer
Avi Kivity
<avi@redhat.com>
Mon, 22 Feb 2010 08:58:33 +0000
(10:58 +0200)
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
patch
|
blob
|
history
diff --git
a/vl.c
b/vl.c
index 1957018cf6765ef3fad1a5e9c1c6f747d73271a4..3bc618dd393048b3e0aab471ea720efaeb30bfcf 100644
(file)
--- 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);