summaryrefslogtreecommitdiff
path: root/zyklonb.c
diff options
context:
space:
mode:
Diffstat (limited to 'zyklonb.c')
-rw-r--r--zyklonb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/zyklonb.c b/zyklonb.c
index 34e6e7e..56a9220 100644
--- a/zyklonb.c
+++ b/zyklonb.c
@@ -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