diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-11-15 15:45:18 -0700 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-11-15 15:45:18 -0700 |
commit | 6cdb2392d73992099955f9ce859748dea97cf4df (patch) | |
tree | 035fe06136548ac7529ce5ec70a459f2428cf250 /cmd/proc_windows.go | |
parent | 0ca109db4ab0b8869a15d388ef9036d9117ec081 (diff) |
cmd: Improve stop command by trying API before signaling process
This allows graceful shutdown on all platforms
Diffstat (limited to 'cmd/proc_windows.go')
-rw-r--r-- | cmd/proc_windows.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |