From 111092ce2369d119463957e8481ebd46800c8a2d Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Thu, 10 Jun 2021 23:08:22 +0200 Subject: [PATCH] test different command attr set --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index b26df6f..82de2c8 100644 --- a/main.go +++ b/main.go @@ -516,9 +516,10 @@ func (b *BuildManager) repoWorker() { func backgroundCmd(name string, arg ...string) *exec.Cmd { cmd := exec.Command(name, arg...) cmd.SysProcAttr = &syscall.SysProcAttr{ - Foreground: false, - Setsid: true, + Setpgid: true, + Pgid: 0, } + return cmd }