lix/src
Eelco Dolstra 93a5ef0516
nix run: Fix chroot execution
Running "nix run" with a diverted store, e.g.

  $ nix run --store local?root=/tmp/nix nixpkgs.hello

stopped working when Nix became multithreaded, because
unshare(CLONE_NEWUSER) doesn't work in multithreaded processes. The
obvious solution is to terminate all other threads first, but 1) there
is no way to terminate Boehm GC marker threads; and 2) it appears that
the kernel has a race where unshare(CLONE_NEWUSER) will still fail for
some indeterminate amount of time after joining other threads.

So instead, "nix run" will now exec() a single-threaded helper ("nix
__run_in_chroot") that performs the actual unshare()/chroot()/exec().
2017-08-29 13:21:07 +02:00
..
boost Shut up some warnings 2017-04-14 14:42:20 +02:00
build-remote Merge branch 'macOS' of https://github.com/davidak/nix 2017-07-31 10:31:51 +02:00
buildenv Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
libexpr Add builtins.string function. 2017-08-15 20:04:11 +00:00
libmain Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
libstore Give activities a verbosity level again 2017-08-28 19:13:24 +02:00
libutil readLink(): Handle symlinks in /proc 2017-08-29 11:52:34 +02:00
linenoise Replace readline by linenoise 2017-05-10 18:37:42 +02:00
nix nix run: Fix chroot execution 2017-08-29 13:21:07 +02:00
nix-build Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
nix-channel Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
nix-collect-garbage printMsg(lvlError, ...) -> printError(...) etc. 2016-09-21 16:54:53 +02:00
nix-copy-closure Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
nix-daemon Give activities a verbosity level again 2017-08-28 19:13:24 +02:00
nix-env Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
nix-instantiate Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
nix-prefetch-url Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
nix-store Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
resolve-system-dependencies Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00