daemon: Avoid kill -1 bug on the Hurd.
authorManolis Ragkousis <manolis837@gmail.com>
Wed, 28 Dec 2016 00:49:22 +0000 (02:49 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Thu, 26 Mar 2020 11:59:33 +0000 (12:59 +0100)
commitd0ed201e0a9736c64cb3c59d8c987c79fd6046d6
treee9eb4a1dd55cf1133598aba3a52e9b44f9a1d4fc
parent9c3b28b911ef8774f42d35d500a86fb25bd50d3c
daemon: Avoid kill -1 bug on the Hurd.

This allows for native builds on the Hurd, doing

    sudo ./pre-inst-env guix-daemon --disable-chroot --build-users-group=guixbuild &
    ./pre-inst-env guix build hello

* nix/libutil/util.cc (killUser)[__GNU__]: Avoid kill -1 bug; kill only
current process and ignore SIGKILL status in parent.

Co-authored-by: Jan Nieuwenhuizen <janneke@gnu.org>
nix/libutil/util.cc