]> git.proxmox.com Git - qemu.git/commitdiff
Fix termination by signal with -no-shutdown
authorKevin Wolf <kwolf@redhat.com>
Wed, 14 Sep 2011 13:38:40 +0000 (15:38 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 16 Sep 2011 13:25:56 +0000 (08:25 -0500)
On signals such as SIGTERM qemu should exit instead of just stopping the VM
even with -no-shutdown.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vl.c

diff --git a/vl.c b/vl.c
index b773d2f126be8883c14a66c7d2bf867f98d44a90..0c2fc3fb3def3db040af1e3daa3021c108e178a6 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -1296,6 +1296,7 @@ void qemu_system_killed(int signal, pid_t pid)
 {
     shutdown_signal = signal;
     shutdown_pid = pid;
+    no_shutdown = 0;
     qemu_system_shutdown_request();
 }