You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
os.posix_openpt() always fails with EINVAL on OpenBSD #154227
3.13only security fixes3.14bugs and security fixes3.15bugs and security fixes3.16new features, bugs and security fixesOS-unsupportedextension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error
Modules/posixmodule.c unconditionally adds O_CLOEXEC to the flags, but OpenBSD's posix_openpt(3) returns EINVAL for any flag other than O_RDWR and O_NOCTTY. The function already makes the fd non-inheritable with _Py_set_inheritable() immediately afterwards, so skip the O_CLOEXEC flag on OpenBSD.
3.13only security fixes3.14bugs and security fixes3.15bugs and security fixes3.16new features, bugs and security fixesOS-unsupportedextension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error
Activity
gh-154227: Fix os.posix_openpt() on OpenBSD (GH-154228)
[3.13] gh-154227: Fix os.posix_openpt() on OpenBSD (GH-154228) (GH-15…
[3.15] gh-154227: Fix os.posix_openpt() on OpenBSD (GH-154228) (GH-15…
[3.14] gh-154227: Fix os.posix_openpt() on OpenBSD (GH-154228) (GH-15…