In VM builds, connect stdin to /dev/null
This prevents programs from hanging while trying to read from stdin.
commit99d2e80d973b7ab1c04754e1f270d4786c46f2a6
authorEelco Dolstra <eelco.dolstra@logicblox.com>
dateThu 4 Jun 2015, 20:08 (12 years ago)
parent8bf170f
pkgs/build-support/vm/default.nix+1
@@ -187,6 +187,7 @@ rec {
187187 # then don't start the build again, but instead drop the user into
188188 # an interactive shell.
189189 if test -n "$origBuilder" -a ! -e /.debug; then
190+ exec < /dev/null
190191 ${coreutils}/bin/touch /.debug
191192 $origBuilder $origArgs
192193 echo $? > /tmp/xchg/in-vm-exit