diff --git a/commands/dhcpd/devices.c b/commands/dhcpd/devices.c index 888ef6ce5..02944fb35 100755 --- a/commands/dhcpd/devices.c +++ b/commands/dhcpd/devices.c @@ -173,6 +173,7 @@ int opendev(network_t *np, fdtype_t fdtype, int compete) switch (fdtype) { case FT_ETHERNET: + fcntl(np->fdp->fd, F_SETFL, fcntl(np->fdp->fd, F_GETFL) | O_NONBLOCK); if (ioctl(np->fdp->fd, NWIOGETHSTAT, ðstat) < 0) { /* Not an Ethernet. */ close(fdp->fd);