GNU bug report logs -
#74534
[shepherd] guix-home managed shepherd shares process group with shell
Previous Next
Reported by: Jelle Licht <jlicht <at> fsfe.org>
Date: Mon, 25 Nov 2024 18:44:02 UTC
Severity: normal
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 74534 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello,
thank you for CC-ing me.
Jelle Licht <jlicht <at> fsfe.org> writes:
> Addendum:
> running `herd eval root "(setsid)"` solves my particular issue, making
> ^C on my shell no longer kill my user shepherd.
Oh, that is neat. I did not realize this can be fixed like that without
modifying shepherd's source code. I turned it into a service that I
added into my home-environment:
--8<---------------cut here---------------start------------->8---
;; Bug 74534: Home shepherd can be killed by ^C
(simple-service 'call-setsid-in-home-shepherd home-shepherd-service-type
(list
(shepherd-service
(documentation "Give shepherd its own process group.")
(provision '(setsid))
(start #~(lambda _ (setsid) #t))
(one-shot? #t))))
--8<---------------cut here---------------end--------------->8---
Have a nice day,
Tomas
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 174 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.