From patchwork Wed Mar 3 12:06:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 46795 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 1935FB7CE6 for ; Wed, 3 Mar 2010 23:26:11 +1100 (EST) Received: from localhost ([127.0.0.1]:32893 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmncR-0003pK-5j for incoming@patchwork.ozlabs.org; Wed, 03 Mar 2010 07:24:03 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NmnMC-0000oe-EG for qemu-devel@nongnu.org; Wed, 03 Mar 2010 07:07:16 -0500 Received: from [199.232.76.173] (port=53679 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmnMC-0000oQ-0A for qemu-devel@nongnu.org; Wed, 03 Mar 2010 07:07:16 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NmnMA-0005Iy-Bd for qemu-devel@nongnu.org; Wed, 03 Mar 2010 07:07:15 -0500 Received: from mx1.redhat.com ([209.132.183.28]:23909) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NmnM9-0005Im-Ts for qemu-devel@nongnu.org; Wed, 03 Mar 2010 07:07:14 -0500 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o23C7C1M031887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 3 Mar 2010 07:07:13 -0500 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o23C71AA004209; Wed, 3 Mar 2010 07:07:11 -0500 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 3 Mar 2010 13:06:56 +0100 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: kwolf@redhat.com, amit.shah@redhat.com Subject: [Qemu-devel] [PATCH 06/10] vl: exit if we are not able to write into the pipe 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 | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index db7a178..119c7e4 100644 --- a/vl.c +++ b/vl.c @@ -5745,6 +5745,7 @@ int main(int argc, char **argv, char **envp) uint8_t status = 1; if (write(fds[1], &status, 1) != 1) { perror("daemonize. Writing to pipe\n"); + exit(1); } } else #endif