FD_SETSIZE check: BuildError -> Error

BuildError denotes a permanent build failure, which is not the case
here.
This commit is contained in:
Eelco Dolstra 2017-07-19 11:18:06 +02:00
parent b144c4d617
commit fc3568e263
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -3835,9 +3835,8 @@ void Worker::waitForInput()
int fdMax = 0;
for (auto & i : children) {
for (auto & j : i.fds) {
if (j >= FD_SETSIZE) {
throw BuildError("reached FD_SETSIZE limit");
}
if (j >= FD_SETSIZE)
throw Error("reached FD_SETSIZE limit");
FD_SET(j, &fds);
if (j >= fdMax) fdMax = j + 1;
}