From fc3568e2633bf3faa234509cfc6034be95f10b6e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 19 Jul 2017 11:18:06 +0200 Subject: [PATCH] FD_SETSIZE check: BuildError -> Error BuildError denotes a permanent build failure, which is not the case here. --- src/libstore/build.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libstore/build.cc b/src/libstore/build.cc index d2a270259..8f483a90d 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; }