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_posix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/proc_posix.go') 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) -- cgit v1.2.3