process

package
v0.164.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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

func CommandContext(ctx context.Context, name string, args ...string) *exec.Cmd

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

func ConfigureDetached(command *exec.Cmd)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL