ZyklonB: avoid infinite reexec loops
This commit is contained in:
		@@ -636,6 +636,9 @@ recovery_handler (int signum, siginfo_t *info, void *context)
 | 
				
			|||||||
			"signal received", signal_name);
 | 
								"signal received", signal_name);
 | 
				
			||||||
	*g_startup_reason_location = buf;
 | 
						*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
 | 
						// TODO: maybe pregenerate the path, see the following for some other ways
 | 
				
			||||||
	//   that would be illegal to do from within a signal handler:
 | 
						//   that would be illegal to do from within a signal handler:
 | 
				
			||||||
	//     http://stackoverflow.com/a/1024937
 | 
						//     http://stackoverflow.com/a/1024937
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user