From 1707bb348b401ddb08ace69b4fa1384cbaaff1b4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 30 Dec 2008 16:49:29 +0000 Subject: [PATCH] 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 --- vl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vl.c b/vl.c index 99ebd9de..ac38c2ab 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); -- 2.39.5