Expand description
Shared subprocess lifecycle management for Fallow.
Protocol adapters and analysis facades use the same registered child handles and operating-system process-tree primitives. This keeps timeout cleanup and signal cleanup identical without introducing dependencies on the CLI crate.
The optional tokio feature adds async command setup and bounded cleanup
while preserving the same operating-system tree owner.
Structs§
- Child
Cleanup - Outcome of a bounded child cleanup attempt.
- Process
Tree - Platform-specific ownership needed to terminate a spawned process tree.
- Process
Tree Terminator - Cloneable process-tree termination capability for timeout and I/O guards.
- Scoped
Child - RAII handle wrapping a spawned
Childwith registry tracking.
Functions§
- cleanup_
std_ child - Terminate and reap a standard-library child with bounded retries.
- configure_
std_ command - Configure a standard-library command so its descendants can be terminated as one tree.
- drain_
and_ kill - Terminate every registered child or process tree and wait for bounded cleanup.
- output
- Convenience: spawn and collect full output (stdout + stderr).
- spawn_
retrying_ busy_ executable - Spawn
command, waiting out an executable that is momentarily busy. - status
- Convenience: spawn and wait for exit, returning the status.