]> Cypherpunks repositories - gostls13.git/commit
syscall: on ARM GNU/Linux let Pipe fall back to pipe
authorIan Lance Taylor <iant@golang.org>
Tue, 5 Mar 2019 02:28:51 +0000 (18:28 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 5 Mar 2019 02:49:10 +0000 (02:49 +0000)
commitab0c9510a988027f305d213213ed2eaaabbffe77
tree049c322f02b116946b03ab574a45a697d492c2bd
parent4e20d999ec4cc9c6ff8e3d01e79c26a8ba775b7b
syscall: on ARM GNU/Linux let Pipe fall back to pipe

Android O seems to require Pipe to call the pipe2 system call.
But kernel version 2.6.23 only supports pipe, not pipe2.
So try pipe2 first, then fall back to pipe.

Fixes #30549

Change-Id: I3c5d86e8e945a5ec8a0ecea7853302952c0476c4
Reviewed-on: https://go-review.googlesource.com/c/go/+/165217
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/syscall/syscall_linux_arm.go
src/syscall/zsyscall_linux_arm.go