Skip to content

Commit c84f3a4

Browse files
committed
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 <[email protected]> Run-TryBot: Tobias Klauser <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 376a079 commit c84f3a4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/syscall/syscall_linux_arm.go

-4
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ func Pipe(p []int) (err error) {
2929
return EINVAL
3030
}
3131
var pp [2]_C_int
32-
// Try pipe2 first for Android O, then try pipe for kernel 2.6.23.
3332
err = pipe2(&pp, 0)
34-
if err == ENOSYS {
35-
err = pipe(&pp)
36-
}
3733
p[0] = int(pp[0])
3834
p[1] = int(pp[1])
3935
return

0 commit comments

Comments
 (0)