[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[shepherd] 05/05: tests: Increase PID file timeout in 'forking-service.s
From: |
Ludovic Courtès |
Subject: |
[shepherd] 05/05: tests: Increase PID file timeout in 'forking-service.sh'. |
Date: |
Mon, 20 Apr 2020 16:11:29 -0400 (EDT) |
civodul pushed a commit to branch master
in repository shepherd.
commit 60d86ce9ebb7048f3aba52f645a320ea9dec335a
Author: Ludovic Courtès <address@hidden>
AuthorDate: Mon Apr 20 20:13:45 2020 +0200
tests: Increase PID file timeout in 'forking-service.sh'.
* tests/forking-service.sh: Call 'default-pid-file-timeout'.
---
tests/forking-service.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/forking-service.sh b/tests/forking-service.sh
index 446a6d1..7126c3d 100644
--- a/tests/forking-service.sh
+++ b/tests/forking-service.sh
@@ -1,5 +1,5 @@
# GNU Shepherd --- Test detecting a forked process' termination
-# Copyright © 2016 Ludovic Courtès <address@hidden>
+# Copyright © 2016, 2020 Ludovic Courtès <address@hidden>
# Copyright © 2018 Carlo Zancanaro <address@hidden>
#
# This file is part of the GNU Shepherd.
@@ -45,6 +45,9 @@ function cleanup
trap cleanup EXIT
cat > "$conf"<<EOF
+;; Leave a timeout long enough for slow machines.
+(default-pid-file-timeout 10)
+
(define %command
'("$SHELL" "-c" "sleep 600 & echo \$! > $PWD/$service_pid"))