In VM builds, connect stdin to /dev/null
This prevents programs from hanging while trying to read from stdin.
This commit is contained in:
parent
8bf170f280
commit
99d2e80d97
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue