guix-commits
[Top][All Lists]
Advanced

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

[shepherd] branch master updated: system: Fix typo in 'getpgid'.


From: Ludovic Courtès
Subject: [shepherd] branch master updated: system: Fix typo in 'getpgid'.
Date: Sat, 18 Apr 2020 12:28:39 -0400

This is an automated email from the git hooks/post-receive script.

civodul pushed a commit to branch master
in repository shepherd.

The following commit(s) were added to refs/heads/master by this push:
     new 589162d  system: Fix typo in 'getpgid'.
589162d is described below

commit 589162dee78b6c7480262b426d59df448575071c
Author: Ludovic Courtès <address@hidden>
AuthorDate: Sat Apr 18 18:27:05 2020 +0200

    system: Fix typo in 'getpgid'.
    
    * modules/shepherd/system.scm.in (getpgid): Check whether RESULT is -1,
    not 1.
---
 modules/shepherd/system.scm.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/shepherd/system.scm.in b/modules/shepherd/system.scm.in
index c715231..ab049f5 100644
--- a/modules/shepherd/system.scm.in
+++ b/modules/shepherd/system.scm.in
@@ -172,7 +172,7 @@ ctrlaltdel(8) and see kernel/reboot.c in Linux."
     (lambda (pid)
       "Return the process group ID for process PID."
       (let-values (((result err) (proc pid)))
-        (if (= 1 result)
+        (if (= -1 result)
             (throw 'system-error "getpgid" "~A"
                    (list (strerror err))
                    (list err))



reply via email to

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