github.com/go/docker@v1.12.0-rc2/utils/process_windows.go (about)

     1  package utils
     2  
     3  // IsProcessAlive returns true if process with a given pid is running.
     4  func IsProcessAlive(pid int) bool {
     5  	// TODO Windows containerd. Not sure this is needed
     6  	//	p, err := os.FindProcess(pid)
     7  	//	if err == nil {
     8  	//		return true
     9  	//	}
    10  	return false
    11  }
    12  
    13  // KillProcess force-stops a process.
    14  func KillProcess(pid int) {
    15  	// TODO Windows containerd. Not sure this is needed
    16  	//	p, err := os.FindProcess(pid)
    17  	//	if err == nil {
    18  	//		p.Kill()
    19  	//	}
    20  }