diff --git a/pkg/procutil/procutil_unix.go b/pkg/procutil/procutil_unix.go index a425bdfd20..4e8338ceb0 100644 --- a/pkg/procutil/procutil_unix.go +++ b/pkg/procutil/procutil_unix.go @@ -10,7 +10,7 @@ import ( ) func SetOptNewProcessGroup(attrs *syscall.SysProcAttr) { - attrs.Setpgid = true + attrs.Setsid = true } func KillProcessGroup(cmd *exec.Cmd) {