mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
FD_SETSIZE check: BuildError -> Error
BuildError denotes a permanent build failure, which is not the case here.
This commit is contained in:
parent
b144c4d617
commit
fc3568e263
1 changed files with 2 additions and 3 deletions
|
@ -3835,9 +3835,8 @@ void Worker::waitForInput()
|
||||||
int fdMax = 0;
|
int fdMax = 0;
|
||||||
for (auto & i : children) {
|
for (auto & i : children) {
|
||||||
for (auto & j : i.fds) {
|
for (auto & j : i.fds) {
|
||||||
if (j >= FD_SETSIZE) {
|
if (j >= FD_SETSIZE)
|
||||||
throw BuildError("reached FD_SETSIZE limit");
|
throw Error("reached FD_SETSIZE limit");
|
||||||
}
|
|
||||||
FD_SET(j, &fds);
|
FD_SET(j, &fds);
|
||||||
if (j >= fdMax) fdMax = j + 1;
|
if (j >= fdMax) fdMax = j + 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue