summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2011-09-14 15:38:40 +0200
committerJustin M. Forbes <jforbes@redhat.com>2011-10-03 14:42:16 -0500
commitfb524042dbc1142406c4d2e5858743c3dc8588c3 (patch)
tree66d8b0f0002820ab2192d88f0f69e688ce407402
parent336398391a8b82863b4eaafcff250625f68a71a2 (diff)
downloadqemu-fb524042dbc1142406c4d2e5858743c3dc8588c3.tar.gz
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 <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--vl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 4b6688b553..63260e43e1 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();
}