mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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 changed files with 1 additions and 0 deletions
1
vl.c
1
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue