]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix unlikely race (or crawl?) condition in case going from alarm to ioctl takes more...
authorErik van der Kouwe <erik@minix3.org>
Sun, 20 Jun 2010 07:30:53 +0000 (07:30 +0000)
committerErik van der Kouwe <erik@minix3.org>
Sun, 20 Jun 2010 07:30:53 +0000 (07:30 +0000)
commands/dhcpd/devices.c

index a0b7585058b592e0748634917c59954721b18f40..9a39177f2e7f298cc899d876fe999e5133a42267 100644 (file)
@@ -96,6 +96,7 @@ void closefd(fd_t *fdp)
 static void timeout(int signum)
 {
     /* nothing to do, ioctl will be aborted automatically */
+    if (alarm(1) < 0) fatal("alarm(1)");
 }
 
 int opendev(network_t *np, fdtype_t fdtype, int compete)