From dd51b5cf3d0b3ec604092ca3a3851b406e8f22ce Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 26 Jul 2007 21:26:23 +0000 Subject: [PATCH] When setting the size of the pty for logging, check if stdout isatty rather than stdin. (trunk r7400) svn path=/main/branches/2.1.2/; revision=7401 --- pym/portage.py | 3 +-- 1 file changed, 1 insertion(+), 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) -- 2.26.2