Skip to content

Commit c06f7f7

Browse files
author
Grzegorz Marszalek
committedMar 5, 2024
fix process kill
1 parent 3276c8f commit c06f7f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎runner/util_linux.go

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ func (e *Engine) killCmd(cmd *exec.Cmd) (pid int, err error) {
3131
func (e *Engine) startCmd(cmd string) (*exec.Cmd, io.ReadCloser, io.ReadCloser, error) {
3232
c := exec.Command("/bin/sh", "-c", cmd)
3333
if e.config.Screen.NoPTY {
34+
c.SysProcAttr = &syscall.SysProcAttr{
35+
Setpgid: true,
36+
}
3437
stderr, err := c.StderrPipe()
3538
if err != nil {
3639
return nil, nil, nil, err

0 commit comments

Comments
 (0)
Please sign in to comment.