diff options
| author | David Crawshaw <crawshaw@golang.org> | 2016-11-28 17:23:12 -0500 |
|---|---|---|
| committer | David Crawshaw <crawshaw@golang.org> | 2016-11-29 00:24:22 +0000 |
| commit | 8a2c34e413bfbcb0ec9b01fd1dac3bc59d921256 (patch) | |
| tree | 11dd096c20fd32cdaa710d90c88347607029b8d4 | |
| parent | d0d8466aca634e30be22d4f1d809ab4c73b4a81e (diff) | |
| download | go-8a2c34e413bfbcb0ec9b01fd1dac3bc59d921256.tar.xz | |
os: Executable can use /proc/self/exe on android
Fixes the os test on the Android builder.
Change-Id: Ibb9db712156a620fcccf515e035475c5e2f535a5
Reviewed-on: https://go-review.googlesource.com/33650
Run-TryBot: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
| -rw-r--r-- | src/os/executable_procfs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/executable_procfs.go b/src/os/executable_procfs.go index a6c8f45189..69a70e18df 100644 --- a/src/os/executable_procfs.go +++ b/src/os/executable_procfs.go @@ -19,7 +19,7 @@ var executablePath, executablePathErr = func() (string, error) { switch runtime.GOOS { default: return "", errors.New("Executable not implemented for " + runtime.GOOS) - case "linux": + case "linux", "android": procfn = "/proc/self/exe" case "netbsd": procfn = "/proc/curproc/exe" |
