diff options
author | Manolis Ragkousis <manolis837@gmail.com> | 2016-08-07 17:48:30 +0300 |
---|---|---|
committer | Jan Nieuwenhuizen <janneke@gnu.org> | 2020-03-26 12:59:33 +0100 |
commit | 9c3b28b911ef8774f42d35d500a86fb25bd50d3c (patch) | |
tree | b8e38f0fc15c1778cc9c354a572856a9cb6ac30e /nix/libstore/sqlite.cc | |
parent | 496d607db3cf1e438ffd1526c4153be551bbef50 (diff) | |
download | guix-9c3b28b911ef8774f42d35d500a86fb25bd50d3c.tar guix-9c3b28b911ef8774f42d35d500a86fb25bd50d3c.tar.gz |
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>
Diffstat (limited to 'nix/libstore/sqlite.cc')
0 files changed, 0 insertions, 0 deletions