From: Roy Marples Date: Wed, 10 Sep 2014 09:10:15 +0000 (+0000) Subject: OpenBSD now correctly opens the socket as NONBLOCKing. X-Git-Tag: v6.4.4~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc44b8dc62d75dc44cd277c537e1fb22fac6c181;p=thirdparty%2Fdhcpcd.git OpenBSD now correctly opens the socket as NONBLOCKing. --- diff --git a/if-bsd.c b/if-bsd.c index d951ca2a..455665fb 100644 --- a/if-bsd.c +++ b/if-bsd.c @@ -311,13 +311,6 @@ if_openrawsocket(struct interface *ifp, int protocol) if (ioctl(fd, BIOCSETF, &pf) == -1) goto eexit; -#ifdef __OpenBSD__ - /* For some reason OpenBSD fails to open the fd as non blocking */ - if ((flags = fcntl(fd, F_GETFL, 0)) == -1 || - fcntl(fd, F_SETFL, flags | O_NONBLOCK) == -1) - goto eexit; -#endif - return fd; eexit: