kern/162374: posix_openpt wrongly removed O_CLOEXEC

Yui NARUSE naruse at
Tue Nov 8 08:50:01 UTC 2011

>Number:         162374
>Category:       kern
>Synopsis:       posix_openpt wrongly removed O_CLOEXEC
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 08 08:50:00 UTC 2011
>Originator:     Yui NARUSE
>Release:        FreeBSD 9.0-RC1
FreeBSD 9.0-RC1 FreeBSD 9.0-RC1 #0: Tue Oct 18 18:51:43 UTC 2011     root at  amd64
FreeBSD 8 undocumentedly supported O_CLOEXEC flag for posix_openpt.
But FreeBSD 9 removed it because it is not in SuSv4.

However next SuS will add O_CLOEXEC for posix_openpt just as FreeBSD 8.2 did.

This means, FreeBSD 8.2 and future FreeBSD supports O_CLOEXEC for posix_openpt, but FreeBSD 9.0 doesn't. It is very confusing.



More information about the freebsd-bugs mailing list