Skip to main content

Module process_capture

Module process_capture 

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

CapturedOutput

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. None preserves unlimited waiting.