Cleanup
This commit is contained in:
		
							parent
							
								
									2579e32c2b
								
							
						
					
					
						commit
						63e10b4d28
					
				
					 1 changed files with 4 additions and 5 deletions
				
			
		|  | @ -218,11 +218,10 @@ void killUser(uid_t uid); | ||||||
|    pid to the caller. */ |    pid to the caller. */ | ||||||
| struct ProcessOptions | struct ProcessOptions | ||||||
| { | { | ||||||
|     string errorPrefix; |     string errorPrefix = "error: "; | ||||||
|     bool dieWithParent; |     bool dieWithParent = true; | ||||||
|     bool runExitHandlers; |     bool runExitHandlers = false; | ||||||
|     bool allowVfork; |     bool allowVfork = true; | ||||||
|     ProcessOptions() : errorPrefix("error: "), dieWithParent(true), runExitHandlers(false), allowVfork(true) { }; |  | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| pid_t startProcess(std::function<void()> fun, const ProcessOptions & options = ProcessOptions()); | pid_t startProcess(std::function<void()> fun, const ProcessOptions & options = ProcessOptions()); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue