Skip to content

Commit

Permalink
os: Executable can use /proc/self/exe on android
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
crawshaw committed Nov 29, 2016
1 parent d0d8466 commit 8a2c34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/executable_procfs.go
Expand Up @@ -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"
Expand Down

0 comments on commit 8a2c34e

Please sign in to comment.