diff options
-rw-r--r-- | buildstream/_sandboxbwrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_sandboxbwrap.py b/buildstream/_sandboxbwrap.py index 11bbdc58b..af9cd51d6 100644 --- a/buildstream/_sandboxbwrap.py +++ b/buildstream/_sandboxbwrap.py @@ -387,7 +387,7 @@ class SandboxBwrap(Sandbox): process.communicate() exit_code = process.poll() - if interactive: + if interactive and stdin.isatty(): # Make this process the foreground process again, otherwise the # next read() on stdin will trigger SIGTTIN and stop the process. # This is required because the sandboxed process does not have |