//go:build !windows package runtime import ( "os" "syscall" ) func processAlivePID(pid int) bool { if pid <= 0 { return false } process, err := os.FindProcess(pid) if err != nil { return false } return process.Signal(syscall.Signal(0)) == nil }