From patchwork Wed Feb 23 21:47:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 84251 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 ozlabs.org (Postfix) with ESMTPS id ED6FEB70CC for ; Thu, 24 Feb 2011 09:05:31 +1100 (EST) Received: from localhost ([127.0.0.1]:40851 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsMpZ-0007uQ-4Y for incoming@patchwork.ozlabs.org; Wed, 23 Feb 2011 17:05:09 -0500 Received: from [140.186.70.92] (port=35773 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsMZN-0000Xn-D4 for qemu-devel@nongnu.org; Wed, 23 Feb 2011 16:48:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsMZJ-0005HR-3q for qemu-devel@nongnu.org; Wed, 23 Feb 2011 16:48:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PsMZI-0005H9-R6 for qemu-devel@nongnu.org; Wed, 23 Feb 2011 16:48:21 -0500 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 p1NLmJMh032030 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 23 Feb 2011 16:48:19 -0500 Received: from trasno.mitica (ovpn-113-97.phx2.redhat.com [10.3.113.97]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p1NLlhCJ020923; Wed, 23 Feb 2011 16:48:18 -0500 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 23 Feb 2011 22:47:36 +0100 Message-Id: <5539bbd83a6658ec015c93623f8c5b5707bca7a1.1298492768.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: 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] [PATCH 27/28] migration: If there is one error, it makes no sense to continue 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 --- buffered_file.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/buffered_file.c b/buffered_file.c index 8435a31..3c917ff 100644 --- a/buffered_file.c +++ b/buffered_file.c @@ -195,7 +195,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;