Skip to content

Commit 31e34fc

Browse files
committed
Close almost all file descriptors in the builder
This regression was accidentally introduced in 35355fc.
1 parent 0b5107c commit 31e34fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libstore/build.cc

+3
Original file line numberDiff line numberDiff line change
@@ -1793,6 +1793,9 @@ void DerivationGoal::startBuilder()
17931793
if (chdir(tmpDir.c_str()) == -1)
17941794
throw SysError(format("changing into `%1%'") % tmpDir);
17951795

1796+
/* Close all other file descriptors. */
1797+
closeMostFDs(set<int>());
1798+
17961799
#ifdef CAN_DO_LINUX32_BUILDS
17971800
/* Change the personality to 32-bit if we're doing an
17981801
i686-linux build on an x86_64-linux machine. */

0 commit comments

Comments
 (0)