summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-25 10:39:57 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-25 10:39:57 +0000
commit68f2cd344eadfbced42da3f28c6b1a6f2d1e8752 (patch)
treec4a437b5112e57965c7f43b6ea33d21b6c6fb12b /pym/portage/process.py
parentSet O_NONBLOCK just for read calls (uses fewer fcntl calls). (diff)
downloadportage-multirepo-68f2cd344eadfbced42da3f28c6b1a6f2d1e8752.tar.gz
portage-multirepo-68f2cd344eadfbced42da3f28c6b1a6f2d1e8752.tar.bz2
portage-multirepo-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.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/pym/portage/process.py b/pym/portage/process.py
index 8b9ab30e..fcec7588 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):