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:
Janos Dobronszki 2020-06-06 15:04:14 +02:00 committed by GitHub
parent 6c7bcf3883
commit 9af12ff9df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {