diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-07-25 10:39:57 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-07-25 10:39:57 +0000 |
commit | 68f2cd344eadfbced42da3f28c6b1a6f2d1e8752 (patch) | |
tree | c4a437b5112e57965c7f43b6ea33d21b6c6fb12b /pym/portage/process.py | |
parent | 5b125fd1420ee7aebfccf7bc4106883c4f3b02ad (diff) | |
download | portage-68f2cd344eadfbced42da3f28c6b1a6f2d1e8752.tar.gz portage-68f2cd344eadfbced42da3f28c6b1a6f2d1e8752.tar.bz2 portage-68f2cd344eadfbced42da3f28c6b1a6f2d1e8752.zip |
For bug #186386, pass stdin directly to spawned processes (even when their output goes through a pty) so that Ctrl+Z works as on would expect.)
svn path=/main/trunk/; revision=7394
Diffstat (limited to 'pym/portage/process.py')
-rw-r--r-- | pym/portage/process.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/pym/portage/process.py b/pym/portage/process.py index 8b9ab30e2..fcec7588c 100644 --- a/pym/portage/process.py +++ b/pym/portage/process.py @@ -132,16 +132,6 @@ def cleanup(): atexit_register(cleanup) -# Make sure the original terminal attributes are reverted at exit. -if hasattr(sys.stdin, "isatty") and sys.stdin.isatty(): - import termios - _stdin_termios = termios.tcgetattr(sys.stdin.fileno()) - def _reset_stdin_termios(stdin_termios): - import termios - termios.tcsetattr(sys.stdin.fileno(), termios.TCSAFLUSH, stdin_termios) - atexit_register(_reset_stdin_termios, _stdin_termios) - del termios, _stdin_termios, _reset_stdin_termios - def spawn(mycommand, env={}, opt_name=None, fd_pipes=None, returnpid=False, uid=None, gid=None, groups=None, umask=None, logfile=None, path_lookup=True, pre_exec=None): |