From: Kevin Wolf Date: Wed, 14 Sep 2011 13:38:40 +0000 (+0200) Subject: Fix termination by signal with -no-shutdown X-Git-Tag: v0.15.1~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fb524042dbc1142406c4d2e5858743c3dc8588c3;p=thirdparty%2Fqemu.git Fix termination by signal with -no-shutdown On signals such as SIGTERM qemu should exit instead of just stopping the VM even with -no-shutdown. Signed-off-by: Kevin Wolf Signed-off-by: Anthony Liguori --- diff --git a/vl.c b/vl.c index 4b6688b5536..63260e43e1b 100644 --- a/vl.c +++ b/vl.c @@ -1282,6 +1282,7 @@ void qemu_system_killed(int signal, pid_t pid) { shutdown_signal = signal; shutdown_pid = pid; + no_shutdown = 0; qemu_system_shutdown_request(); }