[Python-checkins] r52686 - in python/trunk: Lib/pty.py Misc/NEWS
martin.v.loewis
python-checkins at python.org
Thu Nov 9 12:06:04 CET 2006
Author: martin.v.loewis
Date: Thu Nov 9 12:06:03 2006
New Revision: 52686
Modified:
python/trunk/Lib/pty.py
python/trunk/Misc/NEWS
Log:
Patch #838546: Make terminal become controlling in pty.fork().
Will backport to 2.5.
Modified: python/trunk/Lib/pty.py
==============================================================================
--- python/trunk/Lib/pty.py (original)
+++ python/trunk/Lib/pty.py Thu Nov 9 12:06:03 2006
@@ -118,6 +118,10 @@
if (slave_fd > STDERR_FILENO):
os.close (slave_fd)
+ # Explicitly open the tty to make it become a controlling tty.
+ tmp_fd = os.open(os.ttyname(STDOUT_FILENO), os.O_RDWR)
+ os.close(tmp_fd)
+
# Parent and child process.
return pid, master_fd
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Thu Nov 9 12:06:03 2006
@@ -96,6 +96,8 @@
Library
-------
+- Patch #838546: Make terminal become controlling in pty.fork()
+
- Patch #1351744: Add askyesnocancel helper for tkMessageBox.
- Patch #1060577: Extract list of RPM files from spec file in
More information about the Python-checkins
mailing list