Documentation
¶
Overview ¶
Package process starts bounded subprocesses with a lifecycle that owns their descendants as well as their direct child.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandContext ¶
CommandContext returns a command whose cancellation owns the process tree on the platforms where WB supports process-tree cancellation. Callers configure its directory, environment, and stdio exactly as they would an exec.Command.
func CommandContextInteractive ¶ added in v0.98.3
func CommandContextInteractive(ctx context.Context, interactive bool, name string, args ...string) *exec.Cmd
CommandContextInteractive preserves the caller's foreground terminal process group when interactive is true. Noninteractive commands retain tree-owned cancellation.
func ConfigureDetached ¶ added in v0.132.0
ConfigureDetached puts a child in its own session, so it survives the process that started it and a later process-group signal stays scoped to that child and its descendants. It is the one spelling of "detached worker" WB uses, shared by the lifecycle-hook dispatcher and the agent run owner.
Types ¶
This section is empty.