test different command attr set

This commit is contained in:
2021-06-10 23:08:22 +02:00
parent ecddb97864
commit 111092ce23

View File

@@ -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
}