From 68f2cd344eadfbced42da3f28c6b1a6f2d1e8752 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 25 Jul 2007 10:39:57 +0000 Subject: 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 --- pym/portage/process.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'pym/portage/process.py') 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): -- cgit v1.2.3-1-g7c22