SIGN IN SIGN UP

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.
(cherry picked from commit c24896c0e3b32c8a9f614ef51366007b67d5c665)

Co-authored-by: Victor Stinner <vstinner@python.org>
M
Miss Islington (bot) committed
2ae2235c7a7627725df40c7875245cd17d90f39f
Parent: a11158e
Committed by GitHub <noreply@github.com> on 8/6/2021, 1:40:44 PM