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 alex, pitrou, vstinner
Date 2015-02-13.08:31:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1423816306.11.0.133617972899.issue23458@psf.upfronthosting.co.za>
In-reply-to
Content
Attached patch tries to make the private random file descriptor non-inheritable.

It should fix the following issue:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197376

I tried to write an unit test, but since the PEP 446 is not implemented, unexpected file descriptors are inherited. The test should maybe be run in a subprocess to not inherit all file descriptors created by other unit tests.

Note: I removed the stat.S_ISDOOR(st.st_mode) check from Lib/test/subprocessdata/fd_status.py, because stat.S_ISDOOR is not defined in Python 2.7.
History
Date User Action Args
2015-02-13 08:31:46vstinnersetrecipients: + vstinner, pitrou, alex
2015-02-13 08:31:46vstinnersetmessageid: <1423816306.11.0.133617972899.issue23458@psf.upfronthosting.co.za>
2015-02-13 08:31:45vstinnerlinkissue23458 messages
2015-02-13 08:31:45vstinnercreate