]> Cypherpunks repositories - gostls13.git/commit
internal/poll: remove fallback path in accept
authorTobias Klauser <tklauser@distanz.ch>
Tue, 9 Aug 2022 15:45:01 +0000 (17:45 +0200)
committerGopher Robot <gobot@golang.org>
Thu, 18 Aug 2022 16:12:31 +0000 (16:12 +0000)
commitb8b9e83ec7a92498c2c69a1a963c31983d303e21
treec9534f8645d1e9bd1b01234c9fdc8077c9e966af
parent021fd86ce12ac694db778f6998d12c1e8d8c63ca
internal/poll: remove fallback path in accept

Support for operating system versions requiring the fallback to
CloseOnExec/SetNonblock was dropped from recent Go versions. The minimum
Linux kernel version is 2.6.32 as of Go 1.18. FreeBSD 10 is no longer
supported as of Go 1.13.

Follows a similar change for net.sysSocket in CL 403634 and
syscall.Socket in CL 422374.

For #45964

Change-Id: I60848415742a1d8204e1fda585462ff35ad6722f
Reviewed-on: https://go-review.googlesource.com/c/go/+/422375
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/internal/poll/sock_cloexec.go