[New-bugs-announce] [issue23458] [2.7] random: make the file descriptor non-inheritable (on POSIX)

STINNER Victor report at bugs.python.org
Fri Feb 13 09:31:46 CET 2015


New submission from STINNER Victor:

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.

----------
components: Interpreter Core
files: pep446_random.patch
keywords: patch
messages: 235880
nosy: alex, haypo, pitrou
priority: normal
severity: normal
status: open
title: [2.7] random: make the file descriptor non-inheritable (on POSIX)
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file38126/pep446_random.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23458>
_______________________________________


More information about the New-bugs-announce mailing list