sim-card
/
qemu
Archived
10
0
Fork 0

block SIGCHLD in vcpu thread(s)

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>
This commit is contained in:
Marcelo Tosatti 2010-02-17 20:14:40 -02:00 committed by Avi Kivity
parent 62f734a0d5
commit adc8c965c4
1 changed files with 1 additions and 0 deletions

1
vl.c
View File

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