]> 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)
committerJustin M. Forbes <jforbes@redhat.com>
Mon, 3 Oct 2011 19:42:16 +0000 (14:42 -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 4b6688b5536e1f24d05c8be5bd64fd1c2602cae0..63260e43e1b789b7b9fd4b6be7926cfeb5a9f7d7 100644 (file)
--- 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();
 }