MCPcopy Create free account
hub / github.com/codehamr/codehamr / setProcessGroup

Function setProcessGroup

internal/tools/bash_unix.go:14–23  ·  view source on GitHub ↗

setProcessGroup gives the shell its own process group and a Cancel that SIGKILLs the whole group. Without it, backgrounded children (`cmd &`) outlive the shell on cancel or timeout, the leak we prevent. Unix-only: Setpgid and negative-PID Kill aren't portable (Windows has its own build).

(cmd *exec.Cmd)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

BashFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected