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:
		| @@ -68,8 +68,7 @@ func (p *Process) Kill(pid *process.PID) error { | ||||
|  | ||||
| 	// now kill it | ||||
| 	// 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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user