Skip to main content

Module spawn

Module spawn 

Source
Expand description

Process spawning behind a CommandRunner seam (so bench/tests can inject fixture output), plus the single exit-code normalization point.

Structs§

RealRunner
Production runner: actually spawns the process.
SpawnSpec
What to run and how.

Traits§

CommandRunner
Abstraction over “run this command and give me its output + exit code”.

Functions§

normalized_exit_code
Normalize an ExitStatus into an i32 the way a shell would: a normal exit yields its code; a signal death yields 128 + signum.