aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2022-09-13 12:15:02 +0200
committerGopher Robot <gobot@golang.org>2022-09-15 21:09:41 +0000
commitf15582c477a4df03c4793db3c82547bd2956c1ab (patch)
treebd04ea918915ff2369646c99582351ed8fad7b03 /src/database/sql
parent95ec579eb68fcc01975462a74676e3bacd9814b0 (diff)
downloadgo-f15582c477a4df03c4793db3c82547bd2956c1ab.tar.xz
syscall: use fcntl F_DUP2FD_CLOEXEC in forkAndExecInChild on dragonfly
Use fcntl(oldfd, F_DUP2FD_CLOEXEC, newfd) to duplicate the file descriptor and mark is as close-on-exec instead of dup2 & fcntl. DragonFly BSD implements dup3 like this in libc since version 5.4. Change-Id: I80c765faa288add8ffb236284c9e8c4f8e6c6769 Reviewed-on: https://go-review.googlesource.com/c/go/+/430535 Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Jenny Rakoczy <jenny@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Jenny Rakoczy <jenny@golang.org> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Auto-Submit: Jenny Rakoczy <jenny@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/database/sql')
0 files changed, 0 insertions, 0 deletions