mirror of https://github.com/python/cpython
Patch #838546: Make terminal become controlling in pty.fork().
This commit is contained in:
parent
3ed5c2a277
commit
3f63454e22
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -70,6 +70,8 @@ Core and builtins
|
||||||
Extension Modules
|
Extension Modules
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
- Patch #838546: Make terminal become controlling in pty.fork()
|
||||||
|
|
||||||
- Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so that
|
- Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so that
|
||||||
ctypes isn't considered as requiring executable stacks.
|
ctypes isn't considered as requiring executable stacks.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue