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 #16 received at 74534-done <at> debbugs.gnu.org (full text, mbox):
Hello!
Tomas Volf <~@wolfsden.cz> skribis:
> 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.
Fixed in Shepherd commit 2b41e5bad65e783c7a9cc4d7a3f460cab6b64285.
> 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:
>
> ;; 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))))
Nice workaound.
Thank you, comrades!
Ludo’.
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.