Set the close-on-exec flag on file descriptors
This commit is contained in:
		
							parent
							
								
									7b22bec252
								
							
						
					
					
						commit
						35355fc1fc
					
				
					 5 changed files with 20 additions and 3 deletions
				
			
		|  | @ -258,6 +258,9 @@ string runProgram(Path program, bool searchPath = false, | |||
|    listed in the given set.  Good practice in child processes. */ | ||||
| void closeMostFDs(const set<int> & exceptions); | ||||
| 
 | ||||
| /* Set the close-on-exec flag for the given file descriptor. */ | ||||
| void closeOnExec(int fd); | ||||
| 
 | ||||
| /* Wrapper around _exit() on Unix and ExitProcess() on Windows.  (On
 | ||||
|    Cygwin, _exit() doesn't seem to do the right thing.) */ | ||||
| void quickExit(int status); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue