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.

Author vstinner
Recipients JelleZijlstra, shihai1991, sxt1001, vstinner
Date 2022-01-21.16:37:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642783073.86.0.450896719233.issue46454@roundup.psfhosted.org>
In-reply-to
Content
That's not a bug, but a deliberate choice. In Python 3, file descriptors are no longer inherited by default by child processes (fork+exec). Jelle is right, it was changed by my PEP 446.

You must use pass_fds=[fd] parameter of subprocess.

Or at least, make the file descriptor inheritable (worse solution).
History
Date User Action Args
2022-01-21 16:37:53vstinnersetrecipients: + vstinner, JelleZijlstra, shihai1991, sxt1001
2022-01-21 16:37:53vstinnersetmessageid: <1642783073.86.0.450896719233.issue46454@roundup.psfhosted.org>
2022-01-21 16:37:53vstinnerlinkissue46454 messages
2022-01-21 16:37:53vstinnercreate