Skip to content

Commit

Permalink
Close almost all file descriptors in the builder
Browse files Browse the repository at this point in the history
This regression was accidentally introduced in
35355fc.
  • Loading branch information
edolstra committed Apr 14, 2012
1 parent 0b5107c commit 31e34fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libstore/build.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1793,6 +1793,9 @@ void DerivationGoal::startBuilder()
if (chdir(tmpDir.c_str()) == -1)
throw SysError(format("changing into `%1%'") % tmpDir);

/* Close all other file descriptors. */
closeMostFDs(set<int>());

#ifdef CAN_DO_LINUX32_BUILDS
/* Change the personality to 32-bit if we're doing an
i686-linux build on an x86_64-linux machine. */
Expand Down

0 comments on commit 31e34fc

Please sign in to comment.