feat: create standalone native fnOS repository
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
//go:build !linux && !darwin && !freebsd && !windows
|
||||
|
||||
package frp
|
||||
|
||||
import "os"
|
||||
|
||||
func probeProcess(pid int) (bool, string) {
|
||||
if pid <= 0 {
|
||||
return false, ""
|
||||
}
|
||||
process, err := os.FindProcess(pid)
|
||||
if err != nil {
|
||||
return false, ""
|
||||
}
|
||||
return true, process.String()
|
||||
}
|
||||
Reference in New Issue
Block a user