From: Philip Homburg Date: Fri, 9 Dec 2005 13:21:58 +0000 (+0000) Subject: Mark ethernet fd nonblocking to avoid waiting for an ethernet address X-Git-Tag: v3.1.2a~480 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/index.html?a=commitdiff_plain;h=e0634c0b4737223ef02836436753c67fba39c5d2;p=minix.git Mark ethernet fd nonblocking to avoid waiting for an ethernet address --- 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);