Expand description
Captured execution with bounded child waiting and process-tree cleanup.
Uses private temporary files instead of pipes, so inherited output handles cannot keep reader threads alive. Unix cleanup covers the dedicated process group; deliberately detached descendants are outside that cleanup boundary. Windows children are assigned to a kill-on-close Job Object before resuming.
Structs§
Functions§
- run_
with_ output_ limits - Bound captured bytes without allowing inherited handles to extend waiting.
Length checks stop oversized writers; temporary-file growth between polls
is not an operating-system disk quota.
Nonepreserves unlimited waiting.