[issue45915] Use fcntl(fd, F_GETFD) to check whether an fd is valid

Eryk Sun report at bugs.python.org
Mon Dec 13 22:31:17 EST 2021


Eryk Sun <eryksun at gmail.com> added the comment:

PR 29821 adds __APPLE__ to the platforms that use fcntl(fd, F_GETFD). Is this okay on macOS, given bpo-30225? Apparently fstat() fails if the other end of a pipe is closed.

----------

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


More information about the Python-bugs-list mailing list