process_windows.go 464 B

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