mirror of
https://github.com/NixOS/nix
synced 2025-06-28 22:01:15 +02:00
Merge pull request #11278 from Mic92/close-fds
libutil: rename and optimize closeMostFDs
This commit is contained in:
commit
8bd835b7bc
3 changed files with 28 additions and 8 deletions
|
@ -1986,7 +1986,7 @@ void LocalDerivationGoal::runChild()
|
|||
throw SysError("changing into '%1%'", tmpDir);
|
||||
|
||||
/* Close all other file descriptors. */
|
||||
unix::closeMostFDs({STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO});
|
||||
unix::closeExtraFDs();
|
||||
|
||||
#if __linux__
|
||||
linux::setPersonality(drv->platform);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue