diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2021-02-24 09:43:59 +0100 |
---|---|---|
committer | Tobias Klauser <tobias.klauser@gmail.com> | 2021-02-25 18:43:17 +0000 |
commit | ee2a45e5fbee473b81c8ab81da8d83699d64e01f (patch) | |
tree | 8b71a65ef42273ebd09dfa7b5293dfa95252c523 /src/runtime/nbpipe_pipe.go | |
parent | 1f7a01459b1172fdc571a81ffd369dbf32b6c8b2 (diff) | |
download | go-ee2a45e5fbee473b81c8ab81da8d83699d64e01f.tar.gz go-ee2a45e5fbee473b81c8ab81da8d83699d64e01f.zip |
runtime: use pipe2 for nonblockingPipe on dragonfly
The pipe2 syscall is available since DragonflyBSD 4.2, see
https://www.dragonflybsd.org/release42/
Change-Id: Ifc67c4935cc59bae29be459167e2fa765843ac03
Reviewed-on: https://go-review.googlesource.com/c/go/+/295471
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/runtime/nbpipe_pipe.go')
-rw-r--r-- | src/runtime/nbpipe_pipe.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/nbpipe_pipe.go b/src/runtime/nbpipe_pipe.go index d92cf97217..b17257e9ec 100644 --- a/src/runtime/nbpipe_pipe.go +++ b/src/runtime/nbpipe_pipe.go @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build aix || darwin || dragonfly -// +build aix darwin dragonfly +//go:build aix || darwin +// +build aix darwin package runtime |