github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/worker/uniter/runner/process_windows_test.go (about) 1 package runner_test 2 3 import ( 4 "os" 5 ) 6 7 func processExists(pid int) bool { 8 _, err := os.FindProcess(pid) 9 if err != nil { 10 return false 11 } 12 return true 13 }