diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-07-19T09·18+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-07-20T11·33+0200 |
commit | fc3568e2633bf3faa234509cfc6034be95f10b6e (patch) | |
tree | 8f125c4864323f722eddef61d3d47cf163693b59 /src/libstore/build.cc | |
parent | b144c4d61738b9d9e3d741e77066a2be115f0ab5 (diff) |
FD_SETSIZE check: BuildError -> Error
BuildError denotes a permanent build failure, which is not the case here.
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r-- | src/libstore/build.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index d2a270259a8c..8f483a90daad 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -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; } |