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:
parent
e27fa0d04e
commit
673b269068
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user