mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-08-06 10:37:35 +08:00
20 lines
354 B
Go
20 lines
354 B
Go
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
|
|
}
|
|
}
|