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
@ -187,6 +187,7 @@ rec {
|
|||||||
# then don't start the build again, but instead drop the user into
|
# then don't start the build again, but instead drop the user into
|
||||||
# an interactive shell.
|
# an interactive shell.
|
||||||
if test -n "$origBuilder" -a ! -e /.debug; then
|
if test -n "$origBuilder" -a ! -e /.debug; then
|
||||||
|
exec < /dev/null
|
||||||
${coreutils}/bin/touch /.debug
|
${coreutils}/bin/touch /.debug
|
||||||
$origBuilder $origArgs
|
$origBuilder $origArgs
|
||||||
echo $? > /tmp/xchg/in-vm-exit
|
echo $? > /tmp/xchg/in-vm-exit
|
||||||
|
Loading…
Reference in New Issue
Block a user