diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-15 18:23:13 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-15 18:23:13 -0400 |
commit | c078c5ee26a7d2ce730bd8f7560a5e5e33ddeaad (patch) | |
tree | 5b216011575e4027da54c06bc73eb3689758fa21 /test/librechroot-test.sh | |
parent | 462a40c24fdc49f454419d438088a6bc2ba0fdd1 (diff) |
librechroot,libremakepkg: Don't have stdin of nspawn be a TTY if we don't expect input
If stdin is a TTY, systemd-nspawn will create a proxy PTY, and pump the
data from real stdin through the proxy PTY. Because the PTY acts as a
buffer, that means that it eats stdin, EVEN IF THE PROGRAM DOESN'T ACTUALLY
READ IT. This is surprising to the user.
We can't know if the command to `librechroot run` is going to read from
stdin, but for most uses of librechroot we do know. So, set stdin to
/dev/null for those cases.
Diffstat (limited to 'test/librechroot-test.sh')
0 files changed, 0 insertions, 0 deletions