]> Cypherpunks.ru repositories - gostls13.git/commit
syscall, os: fix FreeBSD 9 build
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 21 Mar 2017 22:16:16 +0000 (22:16 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 21 Mar 2017 22:37:27 +0000 (22:37 +0000)
commit2730c17a863e0eeb7afa3589608eece8cc50e6f3
tree247cded80ca44d6438130feb60364f00df7054bc
parentee80afe326bab0a4829bd39186c4f343ac680a40
syscall, os: fix FreeBSD 9 build

I broke FreeBSD 9 in https://golang.org/cl/38426 by using Pipe2.

We still want to support FreeBSD 9 for one last release (Go 1.9 will
be the last), and FreeBSD 9 doesn't have Pipe2.

So this still uses Pipe2, but falls back to Pipe on error.

Updates #18854
Updates #19072

Change-Id: I1de90fb83606c93fb84b4b86fba31e207a702835
Reviewed-on: https://go-review.googlesource.com/38430
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/os/pipe_freebsd.go
src/syscall/exec_freebsd.go
src/syscall/syscall_freebsd.go
src/syscall/zsyscall_freebsd_386.go
src/syscall/zsyscall_freebsd_amd64.go
src/syscall/zsyscall_freebsd_arm.go