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
ProcessManagerimplementation.
Structs§
- Child
Handle - A handle with metadata tracked by the workspace.
- Graceful
Shutdown Outcome - Outcome of a graceful shutdown attempt.
- Spawn
Params - Parameters for spawning a child.
Traits§
- Process
Manager - Supervisor/process manager for spawning and tracking child trees with OS-level supervision.
Functions§
- graceful_
shutdown_ tree - Attempt a graceful shutdown of
pid.