pidfd_android.go 354 B

12345678910111213141516171819
  1. package libbox
  2. import (
  3. "os"
  4. _ "unsafe"
  5. )
  6. // https://github.com/SagerNet/sing-box/issues/3233
  7. // https://github.com/golang/go/issues/70508
  8. // https://github.com/tailscale/tailscale/issues/13452
  9. //go:linkname checkPidfdOnce os.checkPidfdOnce
  10. var checkPidfdOnce func() error
  11. func init() {
  12. checkPidfdOnce = func() error {
  13. return os.ErrInvalid
  14. }
  15. }