github.com/hy3/cuto@v0.9.8-0.20160830082821-aa6652f877b7/util/proc_windows.go (about) 1 package util 2 3 import "os" 4 5 func isProcessExists(pid int) bool { 6 p, err := os.FindProcess(pid) 7 if err != nil { 8 return false 9 } 10 p.Release() 11 return true 12 }