Skip to content

Commit 54dafb2

Browse files
committed
start the process with it's own group and send signals to the entire process group
Signed-off-by: reggie-k <regina.voloshin@codefresh.io>
1 parent af392b7 commit 54dafb2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

util/exec/exec_unix.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import "syscall"
88
func newSysProcAttr(setpgid bool) *syscall.SysProcAttr {
99
return &syscall.SysProcAttr{Setpgid: setpgid}
1010
}
11+
1112
func sysCallSignal(pid int, sig syscall.Signal) error {
1213
return syscall.Kill(pid, sig)
1314
}

0 commit comments

Comments
 (0)