Manolis Ragkousis 9c3b28b911
daemon: Do not use clone on the Hurd.
Checking for CLONE_NEWNS is only needed for using tha Linux specific clone(2),
otherwise we can use fork(2).  Using clone on the Hurd needs some work, only
support LINUX for now.  See
https://lists.gnu.org/archive/html/guix-devel/2020-03/msg00190.html

* nix/libstore/build.cc (CHROOT_ENABLED): Break into CHROOT_ENABLED
and CLONE_ENABLED.
(DerivationGoal::startBuilder): Replace CHROOT_ENABLED with __linux__.
(DerivationGoal::runChild): Only define pivot_root() if SYS_pivot_root is
defined.

Co-authored-by: Jan Nieuwenhuizen <janneke@gnu.org>
2020-03-26 12:59:33 +01:00
..
2020-03-26 12:59:33 +01:00
2015-07-03 00:30:55 +02:00
2015-07-03 00:30:55 +02:00
2019-09-08 11:49:24 +02:00
2019-09-08 11:49:24 +02:00
2018-03-30 23:42:07 +02:00
2018-03-30 23:42:07 +02:00
2019-03-13 23:12:43 +01:00
2014-12-19 22:47:37 +01:00