aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/decode_test.go
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2020-02-23 18:14:34 +0100
committerTobias Klauser <tobias.klauser@gmail.com>2020-02-24 08:31:48 +0000
commit31acdcc701cb97040832bce371fdd8985fbea131 (patch)
tree40739e5585d28210734fd045be34f612751ced2c /src/encoding/json/decode_test.go
parent87c0db9916f992d5e869450deccc1185f642bfc9 (diff)
downloadgo-31acdcc701cb97040832bce371fdd8985fbea131.tar.xz
syscall: use dup3 in forkAndExecInChild1 if available
The dup3 syscall is available since Linux 2.6.27. Fall back to dup2 (if available) if dup3 returns ENOSYS. This allows to omit the additional fcntl call to mark the dup'ed fd as close-on-exec. Change-Id: If318b593edd783f2aa988534c6062498e7119ddb Reviewed-on: https://go-review.googlesource.com/c/go/+/220422 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/encoding/json/decode_test.go')
0 files changed, 0 insertions, 0 deletions