github.com/wallyworld/juju@v0.0.0-20161013125918-6cf1bc9d917a/worker/uniter/runner/process_windows_test.go (about)

     1  // Copyright 2014 Canonical Ltd.
     2  // Copyright 2014 Cloudbase Solutions SRL
     3  // Licensed under the AGPLv3, see LICENCE file for details.
     4  
     5  package runner_test
     6  
     7  import (
     8  	"os"
     9  )
    10  
    11  func processExists(pid int) bool {
    12  	_, err := os.FindProcess(pid)
    13  	if err != nil {
    14  		return false
    15  	}
    16  	return true
    17  }