[issue32865] os.pipe creates inheritable FDs with a bad internal state on Windows

2021-03-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32865] os.pipe creates inheritable FDs with a bad internal state on Windows

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- components: +Extension Modules -Library (Lib) versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker ___

[issue32865] os.pipe creates inheritable FDs with a bad internal state on Windows

2020-12-04 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32865] os.pipe creates inheritable FDs with a bad internal state on Windows

2019-06-02 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +13622 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13739 ___ Python tracker

[issue32865] os.pipe creates inheritable FDs with a bad internal state on Windows

2018-02-17 Thread Eryk Sun
Eryk Sun added the comment: > The first is a bug in os.pipe (creation of an inheritable descriptor > with non-inheritable underlying handle). This can be fixed by using > _open_osfhandle() correctly. This is the only issue to be addressed here, and it's an easy fix. The

[issue32865] os.pipe creates inheritable FDs with a bad internal state on Windows

2018-02-17 Thread Nathaniel Smith
Change by Nathaniel Smith : -- nosy: +njs ___ Python tracker ___ ___ Python-bugs-list

[issue32865] os.pipe creates inheritable FDs with a bad internal state on Windows

2018-02-17 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: >Also, it has to skip this check if the FD is flagged as a pipe, because a pipe >is likely opened in synchronous mode and blocked on a read in the parent, in >which case calling GetFileType would deadlock. Does an FD get flagged as a

[issue32865] os.pipe creates inheritable FDs with a bad internal state on Windows

2018-02-17 Thread Eryk Sun
Eryk Sun added the comment: Note that the CRT checks at startup whether an inherited FD is valid by calling GetFileType. If the handle is invalid or not a File, then the FD effectively is not inherited. This doesn't completely avoid the problem, since there's still a

[issue32865] os.pipe creates inheritable FDs with a bad internal state on Windows

2018-02-17 Thread Eryk Sun
New submission from Eryk Sun : File descriptors in Windows are implemented by the C runtime library's low I/O layer. The CRT maps native File handles to Unix-style file descriptors. Additionally, in order to support inheritance for spawn/exec, the CRT passes inheritable FDs