]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
OpenBSD now correctly opens the socket as NONBLOCKing.
authorRoy Marples <roy@marples.name>
Wed, 10 Sep 2014 09:10:15 +0000 (09:10 +0000)
committerRoy Marples <roy@marples.name>
Wed, 10 Sep 2014 09:10:15 +0000 (09:10 +0000)
if-bsd.c

index d951ca2ae1d3ef123ce60235ccecb4da3bffcabb..455665fb40a9b5a54363676f9915a25c5576e7f5 100644 (file)
--- 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: