]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix unlikely race (or crawl?) condition in case going from alarm to ioctl takes more...
authorBen Gras <ben@minix3.org>
Tue, 22 Jun 2010 23:23:31 +0000 (23:23 +0000)
committerBen Gras <ben@minix3.org>
Tue, 22 Jun 2010 23:23:31 +0000 (23:23 +0000)
(r7382 from trunk)

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)