From: Marcelo Tosatti <mtosatti@redhat.com>
To: qemu-devel@nongnu.org
Cc: glommer@redhat.com, Marcelo Tosatti <mtosatti@redhat.com>,
aliguori@us.ibm.com
Subject: [Qemu-devel] [patch 1/2] qemu: block SIGCHLD in vcpu thread(s)
Date: Thu, 22 Oct 2009 17:38:17 -0200 [thread overview]
Message-ID: <20091022193912.063620036@redhat.com> (raw)
In-Reply-To: 20091022193816.147000901@redhat.com
[-- Attachment #1: block-sigchld --]
[-- Type: text/plain, Size: 517 bytes --]
Otherwise a vcpu thread can run the sigchild handler causing
waitpid() from iothread to fail.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Index: qemu/vl.c
===================================================================
--- qemu.orig/vl.c
+++ qemu/vl.c
@@ -3722,6 +3722,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);
next prev parent reply other threads:[~2009-10-22 19:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-22 19:38 [Qemu-devel] [patch 0/2] iothread fixes Marcelo Tosatti
2009-10-22 19:38 ` Marcelo Tosatti [this message]
2009-10-22 19:38 ` [Qemu-devel] [patch 2/2] qemu: kvm specific wait_io_event Marcelo Tosatti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091022193912.063620036@redhat.com \
--to=mtosatti@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=glommer@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.