diff options
| author | Elias Naur <mail@eliasnaur.com> | 2020-05-28 13:58:45 +0200 |
|---|---|---|
| committer | Elias Naur <mail@eliasnaur.com> | 2020-05-28 19:51:59 +0000 |
| commit | 2711127974b4785dd52bd2fb2ec18275f2634ef4 (patch) | |
| tree | f321a14b96b6d6199e622b0a4adacb4453893631 /src/syscall/syscall_linux_mipsx.go | |
| parent | 6bf2eea62a3425c57f3d908ec32047a9ae41c025 (diff) | |
| download | go-2711127974b4785dd52bd2fb2ec18275f2634ef4.tar.xz | |
syscall: avoid dup2 in forkAndExecInChild1 on Android
Android O and newer blocks the dup2 syscall.
Change-Id: Ibca01fc72ef114deeef6c0450a8b81a556ed0530
Reviewed-on: https://go-review.googlesource.com/c/go/+/235537
Run-TryBot: Elias Naur <mail@eliasnaur.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/syscall/syscall_linux_mipsx.go')
| -rw-r--r-- | src/syscall/syscall_linux_mipsx.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/syscall/syscall_linux_mipsx.go b/src/syscall/syscall_linux_mipsx.go index f2fea71aac..cbe2f0233f 100644 --- a/src/syscall/syscall_linux_mipsx.go +++ b/src/syscall/syscall_linux_mipsx.go @@ -9,10 +9,7 @@ package syscall import "unsafe" -const ( - _SYS_dup = SYS_DUP2 - _SYS_setgroups = SYS_SETGROUPS -) +const _SYS_setgroups = SYS_SETGROUPS func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) |
