net: use F_DUPFD_CLOEXEC when duping fds
This means that in the common case (modern kernel), we only make 1 system call to dup instead of two, and we also avoid grabbing the syscall.ForkLock. R=golang-dev, iant CC=golang-dev https://golang.org/cl/12476043
Showing
Please
register
or
sign in
to comment