github.com/Pankov404/juju@v0.0.0-20150703034450-be266991dceb/worker/uniter/runner/process_nix_test.go (about) 1 // +build !windows 2 3 package runner_test 4 5 import ( 6 "syscall" 7 ) 8 9 func processExists(pid int) bool { 10 err := syscall.Kill(pid, 0) 11 if err != nil { 12 return false 13 } 14 return true 15 }