diff options
-rw-r--r-- | pym/portage/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index bc48de8a1..813b4f27f 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -2284,9 +2284,9 @@ def spawn(mystring, mysettings, debug=0, free=0, droppriv=0, sesandbox=0, **keyw # Disable the ECHO attribute so the terminal behaves properly # if the subprocess needs to read input from stdin. import termios - term_attr = termios.tcgetattr(master_fd) + term_attr = termios.tcgetattr(slave_fd) term_attr[3] &= ~termios.ECHO - termios.tcsetattr(master_fd, termios.TCSAFLUSH, term_attr) + termios.tcsetattr(slave_fd, termios.TCSAFLUSH, term_attr) # tee will always exit with an IO error, so ignore it's stderr. null_file = open('/dev/null', 'w') mypids.extend(portage.process.spawn(['tee', '-i', '-a', logfile], |