diff options
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py index 2c2e83278..e03643292 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2343,8 +2343,7 @@ def spawn(mystring, mysettings, debug=0, free=0, droppriv=0, sesandbox=0, fakero master_fd, slave_fd = openpty() fd_pipes.setdefault(0, sys.stdin.fileno()) fd_pipes_orig = fd_pipes.copy() - stdin_fd = fd_pipes[0] - if os.isatty(stdin_fd): + if os.isatty(fd_pipes_orig[1]): from output import get_term_size, set_term_size rows, columns = get_term_size() set_term_size(rows, columns, slave_fd) |