We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b5107c commit 31e34fcCopy full SHA for 31e34fc
src/libstore/build.cc
@@ -1793,6 +1793,9 @@ void DerivationGoal::startBuilder()
1793
if (chdir(tmpDir.c_str()) == -1)
1794
throw SysError(format("changing into `%1%'") % tmpDir);
1795
1796
+ /* Close all other file descriptors. */
1797
+ closeMostFDs(set<int>());
1798
+
1799
#ifdef CAN_DO_LINUX32_BUILDS
1800
/* Change the personality to 32-bit if we're doing an
1801
i686-linux build on an x86_64-linux machine. */
0 commit comments