Skip to contentSkip to conversation

vl: make --no-shutdown persist

RFC New Alon Levy 1 participant 1 message Jul 10, 2011

lore
Share & tools
lore

Alon Levy

author
#0 lore raw

RFC 1/1 vl: make --no-shutdown persist

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(-)
vl.c +0 -1
index fcd7395..fb694cb 100644
@@ -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;
         }
Signature · 1 line
1.7.6