In VM builds, connect stdin to /dev/null

This prevents programs from hanging while trying to read from stdin.
This commit is contained in:
Eelco Dolstra 2015-06-04 20:08:24 +02:00
parent 8bf170f280
commit 99d2e80d97

View file

@ -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