diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index b82c03f59b..138010f87d 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()); execl(substituter.c_str(), substituter.c_str(), "--query", NULL); throw SysError(format("executing `%1%'") % substituter); } catch (std::exception & e) {