github.com/cloud-green/juju@v0.0.0-20151002100041-a00291338d3d/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 }