fix: use build tags for Setpgid (Unix-only) to fix Windows build

This commit is contained in:
2026-05-26 14:46:36 +01:00
parent a81482d06a
commit a5b18140d3
3 changed files with 22 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
//go:build !windows
package hooks
import (
"os/exec"
"syscall"
)
func setSysProcAttr(cmd *exec.Cmd) {
cmd.SysProcAttr = &syscall.SysProcAttr{Setpgid: true}
}