From 6cdb2392d73992099955f9ce859748dea97cf4df Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 15 Nov 2019 15:45:18 -0700 Subject: cmd: Improve stop command by trying API before signaling process This allows graceful shutdown on all platforms --- cmd/proc_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/proc_windows.go') diff --git a/cmd/proc_windows.go b/cmd/proc_windows.go index dd45234..4a62c27 100644 --- a/cmd/proc_windows.go +++ b/cmd/proc_windows.go @@ -23,7 +23,7 @@ import ( ) func gracefullyStopProcess(pid int) error { - fmt.Printf("Forceful Stop...\n") + fmt.Print("Forceful stop... ") // process on windows will not stop unless forced with /f cmd := exec.Command("taskkill", "/pid", strconv.Itoa(pid), "/f") if err := cmd.Run(); err != nil { -- cgit v1.2.3