Remove unnecessary call to closeMostFDs()

We have close-on-exec on all FDs now, and there is no security risk in
passing open FDs to substituters anyway.
This commit is contained in:
Eelco Dolstra 2012-11-09 14:43:47 +01:00
parent a9a8baaccb
commit 91ef4d9a81

View file

@ -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) {