Skip to content

Commit

Permalink
Send kill signal to process group on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
derekparker committed Jul 28, 2015
1 parent 544c4cc commit 15b7c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proc/proc_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit 15b7c6e

Please sign in to comment.