Message ID | 1462896240-30999-6-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@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A80E49F1C1 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 10 May 2016 16:08:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 151DB20123 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 10 May 2016 16:08:30 +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 4D304200DB for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 10 May 2016 16:08:28 +0000 (UTC) Received: from localhost ([::1]:47340 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 1b0ACx-0005K3-Av for patchwork-qemu-devel@patchwork.kernel.org; Tue, 10 May 2016 12:08:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <marcandre.lureau@gmail.com>) id 1b0A90-0006WZ-QE for qemu-devel@nongnu.org; Tue, 10 May 2016 12:04:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <marcandre.lureau@gmail.com>) id 1b0A8v-00079v-Is for qemu-devel@nongnu.org; Tue, 10 May 2016 12:04:21 -0400 Received: from mail-qg0-x231.google.com ([2607:f8b0:400d:c04::231]:36530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <marcandre.lureau@gmail.com>) id 1b0A8v-00079q-EJ for qemu-devel@nongnu.org; Tue, 10 May 2016 12:04:17 -0400 Received: by mail-qg0-x231.google.com with SMTP id w36so8945697qge.3 for <qemu-devel@nongnu.org>; Tue, 10 May 2016 09:04:17 -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=zIu9nqf4DaXFeAv6lLs1ayGoFQPKUv8+U7VYEDsdKi8=; b=VLIzwgLkrbhm/R6ROMHd07oiv9sLMxI7Em5ZyK3ufk+2sfJzOoTaIIAc6593Mqzpye Wi4M1nxbt1UKnZxhW2Y3PNpdpoQVCYLHmuyvrGx6jQyVJFHm482qrBiPnb5xNOllHBCZ z6fnAbdy6ljK5sJUf8r/nqJqlxPWjid7pxON07TiAQs9qnOJnEydpquYrDU7PLZbNr98 m+sWAvTJbzc/W9fgQ0TdUio7KZ0I3kcflt/b6qgwpBys9D4bD8FJRcxMjIiDwj3FaywZ DVRe7AG5/8IIRs1rXguX3+caiGvtnUmLa/8XtKhw/yOEpAO/VC9DibfuD+jNN/RIvGks FlRA== 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=zIu9nqf4DaXFeAv6lLs1ayGoFQPKUv8+U7VYEDsdKi8=; b=XBP9qT9wIJPqe8ZkD0OG03GwldMVmACEFpaSg5bMzU6hXZAvKwuMzSZG0C6rSxXYBx 8khxiJvd9n3k6krjEJMaT4uaLIMzzkmsavxVamsEWtebnUgjpJ02wOcF31OvuPSL/V/u iv37LtGd2wvAoC31w5V4c6zuXQM6v9/nQWrgXGMqeVUfZc05F122sIWGptwPBUad6MI4 yuHFmkSWzUal2UCL5htvW25GyF4fUoHvbTRZe8XJhIK0a+7Dbiprf0bpVuS77r1NvZS+ YEQjvuMeDrFEqHS0usR7q00r+nqLNHHRCuYYsQ7AsbPxUUFD86Pej1Ute8x8wwTWQJdk YBvQ== X-Gm-Message-State: AOPr4FUa+RYmVQPWhcmYrPuhJUJ9BrFsMQWB+hXfEmVPPQRGyn8KbYKspY9NQh3QjEBzjQ== X-Received: by 10.140.241.194 with SMTP id m185mr19313088qhc.28.1462896256985; Tue, 10 May 2016 09:04:16 -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 b64sm1187588qgb.37.2016.05.10.09.04.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 May 2016 09:04:16 -0700 (PDT) From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Date: Tue, 10 May 2016 18:03:55 +0200 Message-Id: <1462896240-30999-6-git-send-email-marcandre.lureau@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1462896240-30999-1-git-send-email-marcandre.lureau@redhat.com> References: <1462896240-30999-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::231 Subject: [Qemu-devel] [PATCH 05/10] vhost-user: disconnect on start failure X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 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> 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> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <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 4a7fd5f..41ddb4b 100644 --- a/net/vhost-user.c +++ b/net/vhost-user.c @@ -202,7 +202,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;