diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2010-02-17 20:14:40 -0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-02-22 10:58:33 +0200 |
commit | adc8c965c401ec3becc14eabf7a5a6ba7a002f46 (patch) | |
tree | e940af83a1d583bb2222c35382e1de2bacbbfba8 /vl.c | |
parent | 62f734a0d57306523e6ba0e7bd606e0d55449671 (diff) |
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>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |