Patchwork [RFC] vl: make --no-shutdown persist

login
register
mail settings
Submitter Alon Levy
Date July 10, 2011, 9:18 a.m.
Message ID <1310289499-20506-1-git-send-email-alevy@redhat.com>
Download mbox | patch
Permalink /patch/104052/
State New
Headers show

Comments

Alon Levy - July 10, 2011, 9:18 a.m.
If --no-shutdown is specified it only applies for a single shutdown
, so the second shutdown does trigger an exit of qemu.

This patch changes that to keep on not shuting down.
---
 vl.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Patch

diff --git a/vl.c b/vl.c
index fcd7395..fb694cb 100644
--- a/vl.c
+++ b/vl.c
@@ -1398,7 +1398,6 @@  static void main_loop(void)
             monitor_protocol_event(QEVENT_SHUTDOWN, NULL);
             if (no_shutdown) {
                 vm_stop(VMSTOP_SHUTDOWN);
-                no_shutdown = 0;
             } else
                 break;
         }