android: Add workaround for tailscale pidfd crash

This commit is contained in:
世界
2025-08-05 23:20:42 +08:00
parent a05d94c929
commit 5b5ee6ed5b
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package libbox
import (
"os"
_ "unsafe"
)
// https://github.com/SagerNet/sing-box/issues/3233
// https://github.com/golang/go/issues/70508
// https://github.com/tailscale/tailscale/issues/13452
//go:linkname checkPidfdOnce os.checkPidfdOnce
var checkPidfdOnce func() error
func init() {
checkPidfdOnce = func() error {
return os.ErrInvalid
}
}