From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:46990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qfq9i-000554-W1 for qemu-devel@nongnu.org; Sun, 10 Jul 2011 05:18:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qfq9h-0003VN-VX for qemu-devel@nongnu.org; Sun, 10 Jul 2011 05:18:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qfq9h-0003VG-OT for qemu-devel@nongnu.org; Sun, 10 Jul 2011 05:18:25 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6A9INOI021978 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 10 Jul 2011 05:18:24 -0400 Received: from bow.tlv.redhat.com (dhcp-3-110.tlv.redhat.com [10.35.3.110]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p6A9IM0j017809 for ; Sun, 10 Jul 2011 05:18:23 -0400 From: Alon Levy Date: Sun, 10 Jul 2011 12:18:19 +0300 Message-Id: <1310289499-20506-1-git-send-email-alevy@redhat.com> Subject: [Qemu-devel] [RFC] vl: make --no-shutdown persist List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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(-) 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; } -- 1.7.6