Skip to main content

Crate fallow_process

Crate fallow_process 

Source
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§

ChildCleanup
Outcome of a bounded child cleanup attempt.
ProcessTree
Platform-specific ownership needed to terminate a spawned process tree.
ProcessTreeTerminator
Cloneable process-tree termination capability for timeout and I/O guards.
ScopedChild
RAII handle wrapping a spawned Child with 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.