[New-bugs-announce] [issue37267] os.dup() creates an inheritable fd when handling a character file on Windows

Zackery Spytz report at bugs.python.org
Thu Jun 13 06:12:30 EDT 2019


New submission from Zackery Spytz <zspytz at gmail.com>:

In PR 13739, Eryk Sun mentioned that the Windows implementation of os.dup() returns an inheritable fd when handling a character file. A comment in _Py_dup() makes it seem as though this is due to a belief that handles for character files cannot be made non-inheritable (which is wrong).

----------
components: Extension Modules, Windows
messages: 345494
nosy: ZackerySpytz, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: os.dup() creates an inheritable fd when handling a character file on Windows
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37267>
_______________________________________


More information about the New-bugs-announce mailing list