From patchwork Sun Jul 10 09:18:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alon Levy X-Patchwork-Id: 104052 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6A2A9B71DC for ; Sun, 10 Jul 2011 19:20:49 +1000 (EST) Received: from localhost ([::1]:50083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfqBw-00055J-Vn for incoming@patchwork.ozlabs.org; Sun, 10 Jul 2011 05:20:45 -0400 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 To: qemu-devel@nongnu.org Date: Sun, 10 Jul 2011 12:18:19 +0300 Message-Id: <1310289499-20506-1-git-send-email-alevy@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [RFC] vl: make --no-shutdown persist X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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; }