Sigterm instead of Sigkill (#1687)
Co-authored-by: Dominic Wong <domwongemail@googlemail.com> Co-authored-by: Asim Aslam <asim@aslam.me>
This commit is contained in:
parent
6c7bcf3883
commit
9af12ff9df
@ -68,8 +68,7 @@ func (p *Process) Kill(pid *process.PID) error {
|
|||||||
|
|
||||||
// now kill it
|
// now kill it
|
||||||
// using -ve PID kills the process group which we created in Fork()
|
// using -ve PID kills the process group which we created in Fork()
|
||||||
return syscall.Kill(-id, syscall.SIGKILL)
|
return syscall.Kill(-id, syscall.SIGTERM)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Process) Wait(pid *process.PID) error {
|
func (p *Process) Wait(pid *process.PID) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user