Skip to contentSkip to conversation

Fix termination by signal with -no-shutdown

PATCH Applied Kevin Wolf 2 participants 2 messages Sep 14, 2011 – Sep 16, 2011

lore
Share & tools
lore

Kevin Wolf

author
#0 lore raw

PATCH 1/1 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.

---
 vl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
vl.c +1 -0
index b773d2f..0c2fc3f 100644
@@ -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();
 }
 
Signature · 1 line
1.7.6
#1 lore raw
Quoted 4 lines · Kevin Wolf

On signals such as SIGTERM qemu should exit instead of just stopping the VM even with -no-shutdown.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 16 lines
---
  vl.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
vl.c +1 -0
index b773d2f..0c2fc3f 100644
@@ -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();
  }