[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/05: shepherd: 'exec-command*' has a valid default #:directory.
From: |
guix-commits |
Subject: |
04/05: shepherd: 'exec-command*' has a valid default #:directory. |
Date: |
Sun, 10 Apr 2022 18:26:45 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit ada530acb1e848daaac027872e6bad067e82207b
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Apr 10 23:41:15 2022 +0200
shepherd: 'exec-command*' has a valid default #:directory.
Fixes a regression introduced in
938448bf40fc77092859352d2243e2d0c236375f where 'exec-command*' could
get #:directory #f, in particular when called by
'fork+exec-command/container'.
* gnu/build/shepherd.scm (exec-command*): Add default value for #:directory.
---
gnu/build/shepherd.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnu/build/shepherd.scm b/gnu/build/shepherd.scm
index 0627bac5b9..474054f645 100644
--- a/gnu/build/shepherd.scm
+++ b/gnu/build/shepherd.scm
@@ -120,7 +120,7 @@ separate mount and PID name space. Return the \"outer\"
PID. "
pid)))
(define* (exec-command* command #:key user group log-file pid-file
- directory (environment-variables (environ)))
+ (directory "/") (environment-variables (environ)))
"Like 'exec-command', but first restore signal handles modified by
shepherd (PID 1)."
;; First restore the default handlers.