From 9af12ff9df13cf066b4dd06c2927fac3c2eb0bc1 Mon Sep 17 00:00:00 2001 From: Janos Dobronszki Date: Sat, 6 Jun 2020 15:04:14 +0200 Subject: [PATCH] Sigterm instead of Sigkill (#1687) Co-authored-by: Dominic Wong Co-authored-by: Asim Aslam --- runtime/local/process/os/os.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/local/process/os/os.go b/runtime/local/process/os/os.go index a37c5cba..d285f7a4 100644 --- a/runtime/local/process/os/os.go +++ b/runtime/local/process/os/os.go @@ -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 {