From 15b7c6e562b15c72717292516fff53f120379c40 Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Tue, 28 Jul 2015 13:31:54 -0500 Subject: [PATCH] Send kill signal to process group on Linux --- proc/proc_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc/proc_linux.go b/proc/proc_linux.go index eac69e9f..ddd4f8f1 100644 --- a/proc/proc_linux.go +++ b/proc/proc_linux.go @@ -66,7 +66,7 @@ func (dbp *Process) Kill() (err error) { if !stopped(dbp.Pid) { return errors.New("process must be stopped in order to kill it") } - err = sys.Kill(dbp.Pid, sys.SIGKILL) + err = sys.Kill(-dbp.Pid, sys.SIGKILL) if err != nil { return errors.New("could not deliver signal " + err.Error()) } -- GitLab