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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.