From e0634c0b4737223ef02836436753c67fba39c5d2 Mon Sep 17 00:00:00 2001 From: Philip Homburg Date: Fri, 9 Dec 2005 13:21:58 +0000 Subject: [PATCH] Mark ethernet fd nonblocking to avoid waiting for an ethernet address --- commands/dhcpd/devices.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.44.0