From patchwork Tue Sep 20 13:24:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 115548 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 EDFD6B70ED for ; Wed, 21 Sep 2011 00:13:39 +1000 (EST) Received: from localhost ([::1]:38055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R60KN-0002JF-9W for incoming@patchwork.ozlabs.org; Tue, 20 Sep 2011 09:25:35 -0400 Received: from eggs.gnu.org ([140.186.70.92]:45149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R60Jz-00014c-Uv for qemu-devel@nongnu.org; Tue, 20 Sep 2011 09:25:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R60Jq-000573-Ba for qemu-devel@nongnu.org; Tue, 20 Sep 2011 09:25:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R60Jp-00056z-UG for qemu-devel@nongnu.org; Tue, 20 Sep 2011 09:25:02 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p8KDP1Gh022899 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 20 Sep 2011 09:25:01 -0400 Received: from trasno.mitica (ovpn-113-56.phx2.redhat.com [10.3.113.56]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p8KDOpQm017005; Tue, 20 Sep 2011 09:25:00 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Tue, 20 Sep 2011 15:24:45 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 6/7] migration: If there is one error, it makes no sense to continue 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 Signed-off-by: Juan Quintela --- buffered_file.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/buffered_file.c b/buffered_file.c index 5ba3d19..10d14f9 100644 --- a/buffered_file.c +++ b/buffered_file.c @@ -197,7 +197,7 @@ static int buffered_rate_limit(void *opaque) QEMUFileBuffered *s = opaque; if (s->has_error) - return 0; + return -1; if (s->freeze_output) return 1;