Skip to content

net: enable socket creation w/ close-on-exec on freebsd #7186

@mikioh

Description

@mikioh
Linux has already introduced this feature in Go 1.2. So it would nice to live with
quickly and safely not dealing with socket descriptor race conditions in use of
fork+exec+multiple threads (even though current os+syscall ensure not to happen such
blunders).

Note:
- Both FreeBSD 10 and Solaris support SOCK_CLOEXEC, SOCK_NONBLOCK and syscall ACCEPT4
- NetBSD 6.0 supports SOCK_CLOEXEC, SOCK_NONBLOCK and syscall PACCEPT

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions