[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/08: services: jami-service-type: Streamline stop slot.
From: |
guix-commits |
Subject: |
07/08: services: jami-service-type: Streamline stop slot. |
Date: |
Fri, 23 Sep 2022 23:58:40 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit effdc6c83e7000bf062526f4256de69899e13b40
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Sep 23 23:45:27 2022 -0400
services: jami-service-type: Streamline stop slot.
* gnu/services/telephony.scm (jami-shepherd-services)
[stop]: Use make-kill-destructor with SIGKILL. Add comment.
---
gnu/services/telephony.scm | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/gnu/services/telephony.scm b/gnu/services/telephony.scm
index 3d855221e5..b66c7a8563 100644
--- a/gnu/services/telephony.scm
+++ b/gnu/services/telephony.scm
@@ -685,13 +685,11 @@ argument, either a registered username or the fingerprint
of the account.")
;; Finally, return the PID of the daemon process.
daemon-pid))
- (stop
- #~(lambda (pid . args)
- (kill pid SIGKILL)
- ;; Wait for the process to exit; this prevents overlapping
- ;; processes when issuing 'herd restart'.
- (waitpid pid)
- #f))))))))
+ ;; XXX: jamid takes some time to terminate, and GNU Shepherd
+ ;; doesn't block when calling waitpid (see:
+ ;; https://issues.guix.gnu.org/57922). Using SIGKILL instead
+ ;; of SIGTERM works around that.
+ (stop #~(make-kill-destructor SIGKILL))))))))
(define jami-service-type
(service-type
- branch master updated (dab3800691 -> fd109c5c09), guix-commits, 2022/09/23
- 02/08: gnu: jami: Update to 20220825.0828.c10f01f., guix-commits, 2022/09/23
- 04/08: gnu: ffmpeg-jami: Update to 5.0.1 and enable tests., guix-commits, 2022/09/23
- 05/08: build: jami-service: account->username always return a fingerprint., guix-commits, 2022/09/23
- 01/08: gnu: pjproject: Update to 2.12.1., guix-commits, 2022/09/23
- 03/08: gnu: pjproject-jami: Update to 2.12-0.5e478bb., guix-commits, 2022/09/23
- 07/08: services: jami-service-type: Streamline stop slot.,
guix-commits <=
- 08/08: tests: jami-provisioning: Fix test derivation name., guix-commits, 2022/09/23
- 06/08: tests: telephony: Add extra packages to %jami-os for debugging., guix-commits, 2022/09/23