Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
petemoore committed May 17, 2018
1 parent 66fdc41 commit 486b4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process/process_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (c *Command) Kill() error {
// defer tasklist()
defer log.Printf("Process tree with parent PID %v killed.", c.Process.Pid)
// here we use taskkill.exe rather than c.Process.Kill() since we want child processes also to be killed
stdoutStderr, err := exec.Command("taskkill.exe", "/pid", strconv.Itoa(c.Process.Pid), "/f", "t").CombinedOutput()
stdoutStderr, err := exec.Command("taskkill.exe", "/pid", strconv.Itoa(c.Process.Pid), "/f", "/t").CombinedOutput()
log.Printf("%s", stdoutStderr)
return err
}
Expand Down

0 comments on commit 486b4b7

Please sign in to comment.