Skip to content

Commit 0a7ae4b

Browse files
committed
unix: drop fallback to pipe in Pipe on linux/arm
Same as CL 347349 does for package syscall. The minimum required Linux kernel version for Go 1.18 will be changed to 2.6.32, see golang/go#45964. The pipe2 syscall was added in 2.6.27, so the fallback to use the pipe syscall in syscall.Pipe on linux/arm can be removed. For golang/go#45964 Change-Id: I8e222dc4b373b22f91bc1ddcc48f58a37dafcffa Reviewed-on: https://go-review.googlesource.com/c/sys/+/347331 Trust: Tobias Klauser <[email protected]> Run-TryBot: Tobias Klauser <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Matt Layher <[email protected]>
1 parent f475640 commit 0a7ae4b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

unix/syscall_linux_arm.go

-4
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ func Pipe(p []int) (err error) {
2626
return EINVAL
2727
}
2828
var pp [2]_C_int
29-
// Try pipe2 first for Android O, then try pipe for kernel 2.6.23.
3029
err = pipe2(&pp, 0)
31-
if err == ENOSYS {
32-
err = pipe(&pp)
33-
}
3430
p[0] = int(pp[0])
3531
p[1] = int(pp[1])
3632
return

0 commit comments

Comments
 (0)