]> Cypherpunks repositories - gostls13.git/commit
syscall: remove cloexecSocket fallback path
authorTobias Klauser <tklauser@distanz.ch>
Wed, 10 Aug 2022 09:37:22 +0000 (11:37 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 19 Aug 2022 16:27:36 +0000 (16:27 +0000)
commitfe196a064e588d33922c1898bb3b688c5fbf3e2d
treeed71dcd8efb05ab7d39b548e500f3dd1c8bda349
parent572941942026e705a685860a170a60ce371b050e
syscall: remove cloexecSocket fallback path

Support for Linux kernel versions requiring the fallback to CloseOnExec
was dropped from recent Go versions. The minimum Linux kernel version is
2.6.32 as of Go 1.18. The SOCK_CLOEXEC flag for the socket syscall is
supported since kernel version 2.6.27.

Follows a similar change for net.sysSocket in CL 403634.

For #45964

Change-Id: I8b6311f07c4ed7900a9af3ecb2e146c49db08665
Reviewed-on: https://go-review.googlesource.com/c/go/+/422374
Reviewed-by: Joedian Reid <joedian@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
src/syscall/lsf_linux.go
src/syscall/netlink_linux.go
src/syscall/sock_cloexec_linux.go [deleted file]