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
92e9d05432
commit
d613804b0a
@ -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…
Reference in New Issue
Block a user