aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libstore/build.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index ce87eaed2..035151bb2 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -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");