Skip to content

Commit 982da8f

Browse files
authored
Merge pull request #125 from tailscale/kari/disablepidfd
[tailscale] os: disable pidfd on Android again
2 parents a79493b + 92a3dca commit 982da8f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/os/pidfd_linux.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,17 @@ func (p *Process) pidfdSendSignal(s syscall.Signal) error {
132132
}
133133

134134
func pidfdWorks() bool {
135+
if runtime.GOOS == "android" {
136+
// Tailscale-specific workaround since
137+
// https://github.com/golang/go/pull/69543/commits/aad6b3b32c81795f86bc4a9e81aad94899daf520
138+
// does not solve https://github.com/golang/go/issues/69065 for Android apps using Go libraries.
139+
//
140+
// See: https://github.com/tailscale/tailscale/issues/13452
141+
//
142+
// For now (2025-04-09), we'll just disable pidfd
143+
// on all Android releases.
144+
return false
145+
}
135146
return checkPidfdOnce() == nil
136147
}
137148

0 commit comments

Comments
 (0)