mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
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
|
||||
# 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 New Issue
Block a user