Message ID | 1459509388-6185-13-git-send-email-marcandre.lureau@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 28ECCC0553 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 1 Apr 2016 11:24:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 858AD203A4 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 1 Apr 2016 11:24:11 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E9C8E20398 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 1 Apr 2016 11:24:10 +0000 (UTC) Received: from localhost ([::1]:43568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1alxBS-00014r-9Y for patchwork-qemu-devel@patchwork.kernel.org; Fri, 01 Apr 2016 07:24:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <marcandre.lureau@gmail.com>) id 1alx4d-0005xj-T7 for qemu-devel@nongnu.org; Fri, 01 Apr 2016 07:17:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <marcandre.lureau@gmail.com>) id 1alx4Z-0001p8-Vs for qemu-devel@nongnu.org; Fri, 01 Apr 2016 07:17:07 -0400 Received: from mail-qg0-x232.google.com ([2607:f8b0:400d:c04::232]:34370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <marcandre.lureau@gmail.com>) id 1alx4Z-0001ow-RY for qemu-devel@nongnu.org; Fri, 01 Apr 2016 07:17:03 -0400 Received: by mail-qg0-x232.google.com with SMTP id n34so85424273qge.1 for <qemu-devel@nongnu.org>; Fri, 01 Apr 2016 04:17:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rdMM9PSrSA4uWEsHtpjvPLTTDPyoBbF2a3TRRxC5oWA=; b=HSgbU4G1L1tnq1IcTU6cHITk1ZtaWXhnRO/g0DHHePRE6VRkDE96t0brf7qikS9Ob4 FRA0+qi383RXqGCBKtnPj+PvCxeGcPrDyuR3Ax00d6Ww5IZUguILg7eoRN3vO73zkK33 l434WcVp0rhd/tnKW7RZNsP3k+LL0FR0VTvR2jrAHKaC6emeTPYZB0aHal4Mq8KQSHaE lWFRrTSCI9HhFa7s20OJIcbWJQqYJlpgCpASG1o1dnD4a2IJSOTVzk70y4jiftwT/v0X cUSttQ1YhugaDXMnZqndTPZelcH8d4E1KSBWkmPkvOhs1piwy+JRep8eBlH8S0xal3HV PLiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=rdMM9PSrSA4uWEsHtpjvPLTTDPyoBbF2a3TRRxC5oWA=; b=gKo6l3tBqBGgxFkfKh+1Q1MtcgELAVhjL6WHb104SB5508iisb+Sd2TO0NXCXC0P55 Xz/Gq2J6KcCT/xiLLU1a55r3TcdgIpYRa3BYuTPxnWGHKopaZmjFSJavQaSkr4n7fVIt jE9P06Iuj1QrLgfaqFodjY3bgt17qD2e6/NEhTactLjdikvUyhXIcBHEQvbE34zEpef2 23NQJhowepbQ9WeagMD8Mdgyiy97QJytd+ymlFa/BxUc17dlip/vx4i/VcAjmZr0+YsP LODhcfXlTyRtq0Zu/bOYbnfvBGQkSuLLN35cFJNwbbN8iPoBZmGE4BX1GT5ZfyMSBHW3 QbPA== X-Gm-Message-State: AD7BkJIrnJ58JEjCNtr/yjtnKzV4RMQBbFSnUyf32sxER8hezqJksLEjFgmCMApo+INBcA== X-Received: by 10.140.216.212 with SMTP id m203mr6403593qhb.37.1459509423640; Fri, 01 Apr 2016 04:17:03 -0700 (PDT) Received: from localhost (bne75-h02-31-39-163-232.dsl.sta.abo.bbox.fr. [31.39.163.232]) by smtp.gmail.com with ESMTPSA id w16sm5895229qka.35.2016.04.01.04.17.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Apr 2016 04:17:02 -0700 (PDT) From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Date: Fri, 1 Apr 2016 13:16:22 +0200 Message-Id: <1459509388-6185-13-git-send-email-marcandre.lureau@redhat.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1459509388-6185-1-git-send-email-marcandre.lureau@redhat.com> References: <1459509388-6185-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c04::232 Cc: Yuanhan Liu <yuanhan.liu@linux.intel.com>, "Michael S. Tsirkin" <mst@redhat.com>, Ilya Maximets <i.maximets@samsung.com>, jonshin@cisco.com, Tetsuya Mukawa <mukawa@igel.co.jp>, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com> Subject: [Qemu-devel] [PATCH 12/18] vhost-user: disconnect on start failure X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/net/vhost-user.c b/net/vhost-user.c index 3dae53c..54849e9 100644 --- a/net/vhost-user.c +++ b/net/vhost-user.c @@ -204,7 +204,8 @@ static void net_vhost_user_event(void *opaque, int event) s->watch = qemu_chr_fe_add_watch(s->chr, G_IO_HUP, net_vhost_user_watch, s); if (vhost_user_start(queues, ncs) < 0) { - exit(1); + qemu_chr_disconnect(s->chr); + return; } qmp_set_link(name, true, &err); break;