diff options
author | Victor Stinner <vstinner@python.org> | 2021-08-06 13:15:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-06 13:15:10 (GMT) |
commit | c24896c0e3b32c8a9f614ef51366007b67d5c665 (patch) | |
tree | 912b10841274a62ab0b65e0e86e6a892edfcfd14 /Misc/NEWS.d | |
parent | 15d3c14df32a35ac69898a7852115722e30d7857 (diff) | |
download | cpython-c24896c0e3b32c8a9f614ef51366007b67d5c665.zip cpython-c24896c0e3b32c8a9f614ef51366007b67d5c665.tar.gz cpython-c24896c0e3b32c8a9f614ef51366007b67d5c665.tar.bz2 |
bpo-44849: Fix os.set_inheritable() on FreeBSD 14 with O_PATH (GH-27623)
Fix the os.set_inheritable() function on FreeBSD 14 for file
descriptor opened with the O_PATH flag: ignore the EBADF error on
ioctl(), fallback on the fcntl() implementation.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2021-08-06-13-00-28.bpo-44849.O78F_f.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-08-06-13-00-28.bpo-44849.O78F_f.rst b/Misc/NEWS.d/next/Library/2021-08-06-13-00-28.bpo-44849.O78F_f.rst new file mode 100644 index 0000000..b1f2254 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-08-06-13-00-28.bpo-44849.O78F_f.rst @@ -0,0 +1,4 @@ +Fix the :func:`os.set_inheritable` function on FreeBSD 14 for file descriptor +opened with the :data:`~os.O_PATH` flag: ignore the :data:`~errno.EBADF` +error on ``ioctl()``, fallback on the ``fcntl()`` implementation. Patch by +Victor Stinner. |