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_mips64x.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_mips64x.go')
| -rw-r--r-- | src/syscall/syscall_linux_mips64x.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/syscall/syscall_linux_mips64x.go b/src/syscall/syscall_linux_mips64x.go index 157c32326b..e3683def67 100644 --- a/src/syscall/syscall_linux_mips64x.go +++ b/src/syscall/syscall_linux_mips64x.go @@ -7,10 +7,7 @@ package syscall -const ( - _SYS_dup = SYS_DUP2 - _SYS_setgroups = SYS_SETGROUPS -) +const _SYS_setgroups = SYS_SETGROUPS //sys Dup2(oldfd int, newfd int) (err error) //sysnb EpollCreate(size int) (fd int, err error) |
