Skip to content

Commit 8a2c34e

Browse files
committed
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 <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent d0d8466 commit 8a2c34e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/executable_procfs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var executablePath, executablePathErr = func() (string, error) {
1919
switch runtime.GOOS {
2020
default:
2121
return "", errors.New("Executable not implemented for " + runtime.GOOS)
22-
case "linux":
22+
case "linux", "android":
2323
procfn = "/proc/self/exe"
2424
case "netbsd":
2525
procfn = "/proc/curproc/exe"

0 commit comments

Comments
 (0)