process

package
v0.192.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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