Fix unlikely race (or crawl?) condition in case going from alarm to ioctl takes more than 1 second

(r7382 from trunk)
This commit is contained in:
Ben Gras 2010-06-22 23:23:31 +00:00
parent e27fa0d04e
commit 673b269068

View 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)