mirror of
https://github.com/Twigpine/zero.git
synced 2026-11-11 18:00:54 -10:00
* feat(sandbox): unify command execution and enforcement * test(sandbox): make platform contracts portable * fix(sandbox): close execution lifecycle races Bound retained interactive output, preserve interruption state, and start workspace observation before process launch. Protect active runtime roots with cross-platform leases, capture transient protected-path creation events, and restore process attributes after PTY fallback. * fix(sandbox): restore strict macOS isolation Remove Seatbelt host-local network allowances after native validation showed localhost filters can reach host interfaces. Track process reap completion so retained sessions cannot signal a stale numeric PID.
19 lines
517 B
Go
19 lines
517 B
Go
//go:build windows
|
|
|
|
package background
|
|
|
|
import (
|
|
"os/exec"
|
|
|
|
"github.com/Gitlawb/zero/internal/execution"
|
|
)
|
|
|
|
// ConfigureChildProcessGroup is a no-op on Windows: process-tree termination is
|
|
// delegated to execution.TerminateProcessTree, so no launch-time process-group
|
|
// setup is required (the POSIX build sets Setpgid here instead).
|
|
func ConfigureChildProcessGroup(cmd *exec.Cmd) { execution.ConfigureProcessGroup(cmd) }
|
|
|
|
func terminateProcess(pid int) error {
|
|
return execution.TerminateProcessTree(pid, 0, 0)
|
|
}
|