Close almost all file descriptors in the builder

This regression was accidentally introduced in
35355fc1fc.
This commit is contained in:
Eelco Dolstra 2012-04-15 00:20:32 +02:00
parent 0b5107c016
commit 31e34fcf93

View file

@ -1793,6 +1793,9 @@ void DerivationGoal::startBuilder()
if (chdir(tmpDir.c_str()) == -1) if (chdir(tmpDir.c_str()) == -1)
throw SysError(format("changing into `%1%'") % tmpDir); throw SysError(format("changing into `%1%'") % tmpDir);
/* Close all other file descriptors. */
closeMostFDs(set<int>());
#ifdef CAN_DO_LINUX32_BUILDS #ifdef CAN_DO_LINUX32_BUILDS
/* Change the personality to 32-bit if we're doing an /* Change the personality to 32-bit if we're doing an
i686-linux build on an x86_64-linux machine. */ i686-linux build on an x86_64-linux machine. */