ACN Process Management #345

Merged
dan merged 14 commits from torrc into master 2020-10-21 23:58:59 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 1c880c2a17 - Show all commits

View File

@ -13,7 +13,7 @@ import (
// On windows this uses tasklist...
func CheckProcessAndKill(pid uint64, processName string) {
log.Debugf("killing: %v", pid)
bytes,err := exec.Command("tasklist", "/fi", "pid eq "+strconv.Itoa(int(pid))).Output()
bytes,err := exec.Command("tasklist", "/fi", "\"pid eq "+strconv.Itoa(int(pid))+"\"").Output()
if err == nil {
// Output will be something like this:
//
@ -43,4 +43,4 @@ func Kill(pid uint64) {
log.Debugf("could not kill pid: %v %v", pid, err)
}
return
}
}