about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libstore/local-store.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index b82c03f59b4d..138010f87d17 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -983,7 +983,6 @@ void LocalStore::startSubstituter(const Path & substituter, RunningSubstituter &
                 throw SysError("dupping stdout");
             if (dup2(errorPipe.writeSide, STDERR_FILENO) == -1)
                 throw SysError("dupping stderr");
-            closeMostFDs(set<int>());
             execl(substituter.c_str(), substituter.c_str(), "--query", NULL);
             throw SysError(format("executing `%1%'") % substituter);
         } catch (std::exception & e) {