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

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

Will backport to 2.5.
parent 394ae90d
...@@ -118,6 +118,10 @@ def fork(): ...@@ -118,6 +118,10 @@ def fork():
if (slave_fd > STDERR_FILENO): if (slave_fd > STDERR_FILENO):
os.close (slave_fd) 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. # Parent and child process.
return pid, master_fd return pid, master_fd
......
...@@ -96,6 +96,8 @@ Core and builtins ...@@ -96,6 +96,8 @@ Core and builtins
Library Library
------- -------
- Patch #838546: Make terminal become controlling in pty.fork()
- Patch #1351744: Add askyesnocancel helper for tkMessageBox. - Patch #1351744: Add askyesnocancel helper for tkMessageBox.
- Patch #1060577: Extract list of RPM files from spec file in - Patch #1060577: Extract list of RPM files from spec file in
......
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