From 63bc9339d88d8f1bd8a9b366774ce8e33d76dd00 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Mon, 26 Mar 2018 14:55:32 +1100 Subject: [PATCH 3/3] Remove SIGALRM hack. * modules/shepherd.scm (main): Remove SIGALRM hack for guile <= 2.0.9. --- modules/shepherd.scm | 9 --------- 1 file changed, 9 deletions(-) diff --git a/modules/shepherd.scm b/modules/shepherd.scm index 5d97598..69fd69d 100644 --- a/modules/shepherd.scm +++ b/modules/shepherd.scm @@ -207,15 +207,6 @@ (apply format #f (gettext (cadr args)) (caddr args)) (quit 1)))) - (when (provided? 'threads) - ;; XXX: This terrible hack allows us to make sure that signal handlers - ;; get a chance to run in a timely fashion. Without it, after an EINTR, - ;; we could restart the accept(2) call below before the corresponding - ;; async has been queued. See the thread at - ;; . - (sigaction SIGALRM (lambda _ (alarm 1))) - (alarm 1)) - ;; Stop everything when we get SIGINT. When running as PID 1, that means ;; rebooting; this is what happens when pressing ctrl-alt-del, see ;; ctrlaltdel(8). -- 2.16.2