ZyklonB: avoid infinite reexec loops

This commit is contained in:
Přemysl Eric Janouch 2016-02-12 04:05:09 +01:00
parent 06b03d336e
commit 7be995f74a

View File

@ -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