From: Ian Jackson Date: Tue, 30 Dec 2008 16:49:29 +0000 (+0000) Subject: Do not install signal handlers in qemu-dm X-Git-Tag: t.master-before-merge~43 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1707bb348b401ddb08ace69b4fa1384cbaaff1b4;p=qemu-xen-4.2-testing.git Do not install signal handlers in qemu-dm Instead, if we get a terminating signal, just die. This means that xend can kill us. Unlike upstream qemu, we are not at risk from being sent random console signals as an attempt to cleanly terminate the domain. Thanks to report from Dexuan Cui . Signed-off-by: Ian Jackson --- diff --git a/vl.c b/vl.c index 99ebd9de8..ac38c2abe 100644 --- a/vl.c +++ b/vl.c @@ -8885,7 +8885,11 @@ static void termsig_setup(void) struct sigaction act; memset(&act, 0, sizeof(act)); +#ifndef CONFIG_DM act.sa_handler = termsig_handler; +#else + act.sa_handler = SIG_DFL; +#endif sigaction(SIGINT, &act, NULL); sigaction(SIGHUP, &act, NULL); sigaction(SIGTERM, &act, NULL);