aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-10-28 23:55:16 +0200
committerGitHub <noreply@github.com>2021-10-28 23:55:16 +0200
commit0d00dd6262bfd77aaac516410f35970f9dccbcb9 (patch)
tree37d7ce06cc35804ea2cbfa8b150237e8582615d8 /src/libstore/build
parentbc4b7521f4a72de1d7a9db0b5be76885e0729e7c (diff)
parent33d04e8a8d9ab8f1736b7fe725e8851fbc41e1e7 (diff)
Merge pull request #5149 from edolstra/non-blocking-gc
Non-blocking garbage collector
Diffstat (limited to 'src/libstore/build')
-rw-r--r--src/libstore/build/local-derivation-goal.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc
index fab6c3a08..2182f0bb4 100644
--- a/src/libstore/build/local-derivation-goal.cc
+++ b/src/libstore/build/local-derivation-goal.cc
@@ -1353,7 +1353,7 @@ void LocalDerivationGoal::startDaemon()
AutoCloseFD remote = accept(daemonSocket.get(),
(struct sockaddr *) &remoteAddr, &remoteAddrLen);
if (!remote) {
- if (errno == EINTR) continue;
+ if (errno == EINTR || errno == EAGAIN) continue;
if (errno == EINVAL) break;
throw SysError("accepting connection");
}