Module process_manager

Source
Expand description

Tokio-based process management with platform-specific supervision.

On Unix, children are placed in their own process group and (on Linux) are configured with a parent-death signal. Tree termination uses killpg.

On Windows, children are placed into a Job Object configured to kill all processes on close; tree termination uses TerminateJobObject.

Re-exports§

pub use unix::TokioProcessManager;

Modules§

unix
Unix-specific ProcessManager implementation.

Structs§

ChildHandle
A handle with metadata tracked by the workspace.
GracefulShutdownOutcome
Outcome of a graceful shutdown attempt.
SpawnParams
Parameters for spawning a child.

Traits§

ProcessManager
Supervisor/process manager for spawning and tracking child trees with OS-level supervision.

Functions§

graceful_shutdown_tree
Attempt a graceful shutdown of pid.