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:
parent
62f734a0d5
commit
adc8c965c4
1
vl.c
1
vl.c
@ -3515,6 +3515,7 @@ static void block_io_signals(void)
|
|||||||
sigaddset(&set, SIGUSR2);
|
sigaddset(&set, SIGUSR2);
|
||||||
sigaddset(&set, SIGIO);
|
sigaddset(&set, SIGIO);
|
||||||
sigaddset(&set, SIGALRM);
|
sigaddset(&set, SIGALRM);
|
||||||
|
sigaddset(&set, SIGCHLD);
|
||||||
pthread_sigmask(SIG_BLOCK, &set, NULL);
|
pthread_sigmask(SIG_BLOCK, &set, NULL);
|
||||||
|
|
||||||
sigemptyset(&set);
|
sigemptyset(&set);
|
||||||
|
Loading…
Reference in New Issue
Block a user