From 486b4b72b8878ab1fe4a37027602d34885773e79 Mon Sep 17 00:00:00 2001 From: Pete Moore Date: Thu, 17 May 2018 18:21:24 +0200 Subject: [PATCH] fix --- process/process_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/process_windows.go b/process/process_windows.go index c383da7f..976c5bb2 100644 --- a/process/process_windows.go +++ b/process/process_windows.go @@ -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 }