[Python-checkins] r52687 - in python/branches/release25-maint: Lib/pty.py Misc/NEWS

martin.v.loewis python-checkins at python.org
Thu Nov 9 12:06:30 CET 2006


Author: martin.v.loewis
Date: Thu Nov  9 12:06:30 2006
New Revision: 52687

Modified:
   python/branches/release25-maint/Lib/pty.py
   python/branches/release25-maint/Misc/NEWS
Log:
Patch #838546: Make terminal become controlling in pty.fork().


Modified: python/branches/release25-maint/Lib/pty.py
==============================================================================
--- python/branches/release25-maint/Lib/pty.py	(original)
+++ python/branches/release25-maint/Lib/pty.py	Thu Nov  9 12:06:30 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/branches/release25-maint/Misc/NEWS
==============================================================================
--- python/branches/release25-maint/Misc/NEWS	(original)
+++ python/branches/release25-maint/Misc/NEWS	Thu Nov  9 12:06:30 2006
@@ -70,6 +70,8 @@
 Extension Modules
 -----------------
 
+- Patch #838546: Make terminal become controlling in pty.fork()
+
 - Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so that
   ctypes isn't considered as requiring executable stacks.
 


More information about the Python-checkins mailing list