Close almost all file descriptors in the builder
This regression was accidentally introduced in
35355fc1fc.
			
			
This commit is contained in:
		
							parent
							
								
									0b5107c016
								
							
						
					
					
						commit
						31e34fcf93
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -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. */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue