Commit 3f63454e authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #838546: Make terminal become controlling in pty.fork().

parent 3ed5c2a2
......@@ -118,6 +118,10 @@ def fork():
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
......
......@@ -70,6 +70,8 @@ Core and builtins
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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment