提交 adc8c965 编写于 作者: M Marcelo Tosatti 提交者: Avi Kivity

block SIGCHLD in vcpu thread(s)

Otherwise a vcpu thread can run the sigchild handler causing
waitpid() from iothread to fail.
Signed-off-by: NMarcelo Tosatti <mtosa...@redhat.com>
Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 62f734a0
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册