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:
parent
a9a8baaccb
commit
91ef4d9a81
1 changed files with 0 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue