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_posix.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_posix.go')
-rw-r--r-- | cmd/proc_posix.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/proc_posix.go b/cmd/proc_posix.go index 199c614..9ca589f 100644 --- a/cmd/proc_posix.go +++ b/cmd/proc_posix.go @@ -24,7 +24,7 @@ import ( ) func gracefullyStopProcess(pid int) error { - fmt.Printf("Graceful stop...\n") + fmt.Print("Graceful stop... ") err := syscall.Kill(pid, syscall.SIGINT) if err != nil { return fmt.Errorf("kill: %v", err) |