ZyklonB: avoid infinite reexec loops
This commit is contained in:
		
							parent
							
								
									06b03d336e
								
							
						
					
					
						commit
						7be995f74a
					
				| @ -636,6 +636,9 @@ recovery_handler (int signum, siginfo_t *info, void *context) | ||||
| 			"signal received", signal_name); | ||||
| 	*g_startup_reason_location = buf; | ||||
| 
 | ||||
| 	// Avoid annoying resource intensive infinite loops by sleeping for a bit
 | ||||
| 	(void) sleep (1); | ||||
| 
 | ||||
| 	// TODO: maybe pregenerate the path, see the following for some other ways
 | ||||
| 	//   that would be illegal to do from within a signal handler:
 | ||||
| 	//     http://stackoverflow.com/a/1024937
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user