Message235880
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. |
|
Date |
User |
Action |
Args |
2015-02-13 08:31:46 | vstinner | set | recipients:
+ vstinner, pitrou, alex |
2015-02-13 08:31:46 | vstinner | set | messageid: <1423816306.11.0.133617972899.issue23458@psf.upfronthosting.co.za> |
2015-02-13 08:31:45 | vstinner | link | issue23458 messages |
2015-02-13 08:31:45 | vstinner | create | |
|