diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2021-09-08 10:41:56 +0200 |
|---|---|---|
| committer | Tobias Klauser <tobias.klauser@gmail.com> | 2021-09-09 04:47:41 +0000 |
| commit | c84f3a4004076b0e3dcef0a17573d85eb90ef5fc (patch) | |
| tree | 5b190a14ebd82aa873502c667504d207c3ff811c /src/syscall/syscall_linux_arm.go | |
| parent | 376a079762bf8db387510d50ed718ec1259d1b7c (diff) | |
| download | go-c84f3a4004076b0e3dcef0a17573d85eb90ef5fc.tar.xz | |
syscall: drop fallback to pipe in Pipe on linux/arm
Follow-up for CL 346789
The minimum required Linux kernel version for Go 1.18 will be changed to
2.6.32, see #45964. The pipe2 syscall was added in 2.6.27, so the
fallback to use pipe in Pipe on linux/arm can be removed.
For #45964
Change-Id: I8b18244ca1f849f10e90565b4fef80ce777fef69
Reviewed-on: https://go-review.googlesource.com/c/go/+/347349
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/syscall/syscall_linux_arm.go')
| -rw-r--r-- | src/syscall/syscall_linux_arm.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/syscall/syscall_linux_arm.go b/src/syscall/syscall_linux_arm.go index e887cf788f..fffa4b29b9 100644 --- a/src/syscall/syscall_linux_arm.go +++ b/src/syscall/syscall_linux_arm.go @@ -29,11 +29,7 @@ func Pipe(p []int) (err error) { return EINVAL } var pp [2]_C_int - // Try pipe2 first for Android O, then try pipe for kernel 2.6.23. err = pipe2(&pp, 0) - if err == ENOSYS { - err = pipe(&pp) - } p[0] = int(pp[0]) p[1] = int(pp[1]) return |
