Skip to content

Commit ee5b4d7

Browse files
committed
[tailscale] os: disable pidfd on Android again
Updates tailscale/tailscale#13452 Updates golang#70508 Signed-off-by: kari-ts <[email protected]>
1 parent 16b6e4f commit ee5b4d7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/os/pidfd_linux.go

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

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

0 commit comments

Comments
 (0)