From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZguFZ-0003yU-P2 for qemu-devel@nongnu.org; Tue, 29 Sep 2015 08:43:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZguFW-0004SB-JC for qemu-devel@nongnu.org; Tue, 29 Sep 2015 08:43:17 -0400 Received: from lhrrgout.huawei.com ([194.213.3.17]:42107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZguFW-0004RW-9q for qemu-devel@nongnu.org; Tue, 29 Sep 2015 08:43:14 -0400 References: <1443094669-4144-1-git-send-email-marcandre.lureau@redhat.com> <1443094669-4144-11-git-send-email-marcandre.lureau@redhat.com> From: Claudio Fontana Message-ID: <560A875E.9090507@huawei.com> Date: Tue, 29 Sep 2015 14:43:10 +0200 MIME-Version: 1.0 In-Reply-To: <1443094669-4144-11-git-send-email-marcandre.lureau@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v4 10/47] ivshmem: remove last exit(1) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: marcandre.lureau@redhat.com, qemu-devel@nongnu.org Cc: pbonzini@redhat.com, drjones@redhat.com, cam@cs.ualberta.ca, stefanha@redhat.com On 24.09.2015 13:37, marcandre.lureau@redhat.com wrote: > From: Marc-André Lureau > > Failing to create a chardev shouldn't be fatal. > > Signed-off-by: Marc-André Lureau > --- > hw/misc/ivshmem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c > index 62547c0..e7224b9 100644 > --- a/hw/misc/ivshmem.c > +++ b/hw/misc/ivshmem.c > @@ -299,7 +299,7 @@ static CharDriverState* create_eventfd_chr_device(void * opaque, EventNotifier * > > if (chr == NULL) { > error_report("creating eventfd for eventfd %d failed", eventfd); > - exit(1); > + return NULL; > } > qemu_chr_fe_claim_no_fail(chr); > > Reviewed-by: Claudio Fontana