From patchwork Wed Aug 19 02:07:45 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 31619 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id C3779B7B65 for ; Wed, 19 Aug 2009 12:36:59 +1000 (EST) Received: from localhost ([127.0.0.1]:44837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mdb2k-0002ki-EZ for incoming@patchwork.ozlabs.org; Tue, 18 Aug 2009 22:36:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mdb2D-0002iv-Sv for qemu-devel@nongnu.org; Tue, 18 Aug 2009 22:36:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mdb28-0002hl-SU for qemu-devel@nongnu.org; Tue, 18 Aug 2009 22:36:21 -0400 Received: from [199.232.76.173] (port=37498 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mdb28-0002hi-NG for qemu-devel@nongnu.org; Tue, 18 Aug 2009 22:36:16 -0400 Received: from [66.187.237.31] (port=53936 helo=mx2.redhat.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mdb28-0004SU-83 for qemu-devel@nongnu.org; Tue, 18 Aug 2009 22:36:16 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7J2A78q026674 for ; Tue, 18 Aug 2009 22:10:07 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n7J2A53I001610; Tue, 18 Aug 2009 22:10:06 -0400 Received: from localhost.localdomain (vpn1-4-108.ams2.redhat.com [10.36.4.108]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n7J2A1t1004927; Tue, 18 Aug 2009 22:10:04 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 19 Aug 2009 04:07:45 +0200 Message-Id: <991e83f9676e77bb3a396d1544756b89cba7d373.1250646771.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Greylist: delayed 1571 seconds by postgrey-1.27 at monty-python; Tue, 18 Aug 2009 22:36:16 EDT Subject: [Qemu-devel] [PATCH 2/6] We want to autostart on incoming conections Once there, indent surrounded code in qemu style X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Juan Quintela --- vl.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/vl.c b/vl.c index 66246af..e86bdce 100644 --- a/vl.c +++ b/vl.c @@ -6040,12 +6040,10 @@ int main(int argc, char **argv, char **envp) do_loadvm(cur_mon, loadvm); if (incoming) { - autostart = 0; qemu_start_incoming_migration(incoming); - } - - else if (autostart) + } else if (autostart) { vm_start(); + } #ifndef _WIN32 if (daemonize) {