guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[shepherd] 03/07: service: Choose a respawn limit slightly more lax.


From: Ludovic Courtès
Subject: [shepherd] 03/07: service: Choose a respawn limit slightly more lax.
Date: Wed, 23 Mar 2016 21:41:04 +0000

civodul pushed a commit to branch master
in repository shepherd.

commit 654fc4883e0386fa3b615721458fb2d36293accc
Author: Ludovic Courtès <address@hidden>
Date:   Wed Mar 23 19:23:14 2016 +0100

    service: Choose a respawn limit slightly more lax.
    
    * modules/shepherd/service.scm (respawn-limit): Change to '(5 . 7).
---
 modules/shepherd/service.scm |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/modules/shepherd/service.scm b/modules/shepherd/service.scm
index 791bb2a..8f720de 100644
--- a/modules/shepherd/service.scm
+++ b/modules/shepherd/service.scm
@@ -122,7 +122,12 @@
      '())))
 
 ;; Respawning CAR times in CDR seconds will disable the service.
-(define respawn-limit (cons 5 5))
+;;
+;; XXX: The terrible hack in (shepherd) using SIGALRM to work around
+;; unreliable SIGCHLD delivery means that it might take up to 1 second for
+;; SIGCHLD to be delivered.  Thus, arrange for the car to be lower than the
+;; cdr.
+(define respawn-limit '(5 . 7))
 
 (define (respawn-limit-hit? respawns times seconds)
   "Return true of RESPAWNS, the list of times at which a given service was



reply via email to

[Prev in Thread] Current Thread [Next in Thread]