github.com/altoros/juju-vmware@v0.0.0-20150312064031-f19ae857ccca/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  }