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

Submitted by Alon Levy on July 10, 2011, 9:18 a.m.

Details

Message ID 1310289499-20506-1-git-send-email-alevy@redhat.com
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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;
         }