mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
shepherd: 'fork+exec-command/container' always returns a PID.
Fixes a regression introduced in
938448bf40
whereby
'fork+exec-command/container' would return #t, then used as the running
value of the 'guix-daemon' service in the installer. Upon installation
completion, stopping the 'guix-daemon' service would fail with
wrong-type-arg because that #t would be passed to the 'stop' method in
lieu of a PID.
* gnu/build/shepherd.scm (fork+exec-command/container): Return a PID
rather than #t.
This commit is contained in:
parent
ada530acb1
commit
f429596627
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ (define (strip-pid args)
|
|||
(apply exec-command* command (strip-pid args)))
|
||||
(lambda ()
|
||||
(primitive-_exit 127))))
|
||||
(pid #t))))
|
||||
(pid pid)))) ;XXX: assuming the same PID namespace
|
||||
(apply fork+exec-command command (strip-pid args)))))
|
||||
|
||||
;; Local Variables:
|
||||
|
|
Loading…
Reference in a new issue