aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/encode.go
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2021-10-25 13:37:29 +0200
committerTobias Klauser <tobias.klauser@gmail.com>2021-10-26 05:02:53 +0000
commitec6c00418c83aa4f68a5afc9803831f43f8d794f (patch)
treed3261a139ab78281420ba2ff0450a48050580a4b /src/encoding/json/encode.go
parentadfb85b3150d5ebe36440f82d83be88403951319 (diff)
downloadgo-ec6c00418c83aa4f68a5afc9803831f43f8d794f.tar.xz
syscall: use fcntl F_DUP2FD_CLOEXEC in forkAndExecInChild on illumos
Use fcntl(oldfd, F_DUP2FD_CLOEXEC, newfd) to duplicate the file descriptor and mark is as close-on-exec instead of dup2 & fcntl. Illumos implements dup3 like this in libc. Change-Id: I9782bce553ffb832e9b1a12bbf3c0a40c821f56e Reviewed-on: https://go-review.googlesource.com/c/go/+/358374 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/encoding/json/encode.go')
0 files changed, 0 insertions, 0 deletions