summaryrefslogtreecommitdiff
path: root/cmd/proc_posix.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/proc_posix.go')
-rw-r--r--cmd/proc_posix.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/proc_posix.go b/cmd/proc_posix.go
index 2cb4b9a..da586e0 100644
--- a/cmd/proc_posix.go
+++ b/cmd/proc_posix.go
@@ -22,9 +22,14 @@ import (
)
func gracefullyStopProcess(pid int) error {
+ fmt.Printf("Graceful stop...")
err := syscall.Kill(pid, syscall.SIGINT)
if err != nil {
return fmt.Errorf("kill: %v", err)
}
return nil
}
+
+func getProcessName() string {
+ return filepath.Base(os.Args[0])
+}