This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: pty.fork() python implementation leaks the slave fd
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, movement
Priority: normal Keywords: patch

Created on 2007-01-31 04:49 by movement, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pty.diff movement, 2007-01-31 04:49 Patch
Messages (3)
msg51822 - (view) Author: John Levon (movement) Date: 2007-01-31 04:49
    master_fd, slave_fd = openpty()
    pid = os.fork()
    if pid == CHILD:
        ...
    # Parent and child process.
    return pid, master_fd

This is leaking 'slave_fd' in the parent.
msg51823 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-01-31 07:44
Thanks for the report, this was already fixed in rev. 53146 on the trunk.
msg51824 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-01-31 07:49
Committed 2.5 branch rev. 53606.
History
Date User Action Args
2022-04-11 14:56:22adminsetgithub: 44526
2007-01-31 04:49:52movementcreate