From: Zac Medico Date: Thu, 26 Jul 2007 21:26:23 +0000 (-0000) Subject: When setting the size of the pty for logging, check if stdout isatty rather than... X-Git-Tag: v2.1.3~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dd51b5cf3d0b3ec604092ca3a3851b406e8f22ce;p=portage.git 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 --- 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)