github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/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 }