mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
net, internal/poll, net/internal/socktest: use SOCK_{CLOEXEC,NONBLOCK} accept4/socket flags on OpenBSD
The SOCK_CLOEXEC and SOCK_NONBLOCK flags to the socket syscall and the accept4 syscall are supported since OpenBSD 5.7. Follows CL 40895 and CL 94295 Change-Id: Icaf35ace2ef5e73279a70d4f1a9fbf3be9371e6c Reviewed-on: https://go-review.googlesource.com/97196 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
db7af2e67b
commit
144bf04a2b
15 changed files with 65 additions and 7 deletions
|
|
@ -5,7 +5,7 @@
|
|||
// This file implements sysSocket and accept for platforms that do not
|
||||
// provide a fast path for setting SetNonblock and CloseOnExec.
|
||||
|
||||
// +build darwin nacl openbsd solaris
|
||||
// +build darwin nacl solaris
|
||||
|
||||
package net
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue