From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtBCE-00020W-TY for qemu-devel@nongnu.org; Fri, 15 May 2015 04:42:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YtBCE-0003LY-5I for qemu-devel@nongnu.org; Fri, 15 May 2015 04:42:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtBCD-0003LS-Tw for qemu-devel@nongnu.org; Fri, 15 May 2015 04:42:18 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t4F8gGWt011215 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 15 May 2015 04:42:17 -0400 From: Markus Armbruster References: <1431432187-10993-1-git-send-email-armbru@redhat.com> <1431432187-10993-6-git-send-email-armbru@redhat.com> <5554D1D9.3060108@redhat.com> Date: Fri, 15 May 2015 10:42:14 +0200 In-Reply-To: <5554D1D9.3060108@redhat.com> (Eric Blake's message of "Thu, 14 May 2015 10:48:25 -0600") Message-ID: <87bnhmnsex.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 05/15] tap: net_tap_fd_init() can't fail, drop dead error handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, stefanha@redhat.com Eric Blake writes: > On 05/12/2015 06:02 AM, Markus Armbruster wrote: >> Signed-off-by: Markus Armbruster >> --- >> net/tap.c | 14 +------------- >> 1 file changed, 1 insertion(+), 13 deletions(-) >> > >> @@ -552,14 +551,8 @@ int net_init_bridge(const NetClientOptions *opts, const char *name, >> } >> >> fcntl(fd, F_SETFL, O_NONBLOCK); > > Well, fcntl() could fail. And don't we have the helper function > util/oslib-posix.c:qemu_set_nonblock() for doing this correctly? (Then > again, that helper also ignores failures). > > But the raw use of fcntl here is pre-existing and you didn't touch it, > so it doesn't affect my review of this patch. I guess using the helper makes some sense here, but it's outside this series' scope. > Reviewed-by: Eric Blake Thanks!