Files
archie/internal/agentexec/harness_proc_other.go
T
sam 1ef576ca7b
deploy / plan (push) Failing after 7s
deploy / gate (push) Skipped
deploy / archied-image (push) Skipped
deploy / agent-image (push) Skipped
deploy / dist-zip (push) Skipped
fix(agentexec): run gate commands as the harness user and reap the process group after each invocation
2026-11-09 01:40:10 +11:00

31 lines
888 B
Go

//go:build !unix
package agentexec
import (
"errors"
"os/exec"
)
// setProcessGroup falls back to killing the harness process alone where
// process groups are unavailable.
func setProcessGroup(*exec.Cmd) {}
// reapGroup has nothing to do where process groups are unavailable.
func reapGroup(*exec.Cmd) {}
// runAsHarnessUser refuses a named harness user where user switching is
// unavailable, rather than running the harness as the worker.
func runAsHarnessUser(_ *exec.Cmd, name string) error {
if name != "" {
return errors.New("harness user switching is unsupported on this platform")
}
return nil
}
// ownForHarness has nothing to do where the harness runs as the worker.
func ownForHarness(string, ...string) error { return nil }
// ownTreeForHarness has nothing to do where the harness runs as the worker.
func ownTreeForHarness(string, string) error { return nil }