diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-06-04 20:08:24 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-06-04 20:08:56 +0200 |
commit | 99d2e80d973b7ab1c04754e1f270d4786c46f2a6 (patch) | |
tree | 61b9a757e045575de1a49c7244186daeabac17db /pkgs/build-support/vm | |
parent | 8bf170f280436cfdfda5ead492cf9ab5e04b4637 (diff) | |
download | nixlib-99d2e80d973b7ab1c04754e1f270d4786c46f2a6.tar nixlib-99d2e80d973b7ab1c04754e1f270d4786c46f2a6.tar.gz nixlib-99d2e80d973b7ab1c04754e1f270d4786c46f2a6.tar.bz2 nixlib-99d2e80d973b7ab1c04754e1f270d4786c46f2a6.tar.lz nixlib-99d2e80d973b7ab1c04754e1f270d4786c46f2a6.tar.xz nixlib-99d2e80d973b7ab1c04754e1f270d4786c46f2a6.tar.zst nixlib-99d2e80d973b7ab1c04754e1f270d4786c46f2a6.zip |
In VM builds, connect stdin to /dev/null
This prevents programs from hanging while trying to read from stdin.
Diffstat (limited to 'pkgs/build-support/vm')
-rw-r--r-- | pkgs/build-support/vm/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/build-support/vm/default.nix b/pkgs/build-support/vm/default.nix index a9f9f0d184cf..53a013654357 100644 --- a/pkgs/build-support/vm/default.nix +++ b/pkgs/build-support/vm/default.nix @@ -187,6 +187,7 @@ rec { # then don't start the build again, but instead drop the user into # an interactive shell. if test -n "$origBuilder" -a ! -e /.debug; then + exec < /dev/null ${coreutils}/bin/touch /.debug $origBuilder $origArgs echo $? > /tmp/xchg/in-vm-exit |