Check for potential infinite select() loops when building
This commit is contained in:
parent
a9045c727f
commit
cc511fd65b
1 changed files with 2 additions and 0 deletions
|
@ -3141,6 +3141,8 @@ void Worker::waitForInput()
|
|||
}
|
||||
}
|
||||
|
||||
assert(fdMax != 0);
|
||||
|
||||
if (select(fdMax, &fds, 0, 0, useTimeout ? &timeout : 0) == -1) {
|
||||
if (errno == EINTR) return;
|
||||
throw SysError("waiting for input");
|
||||
|
|
Loading…
Reference in a new issue