Expand description
Worker-only child ownership. Cancellation signals a private Unix process group promptly; only its owner may revoke the capability and reap the PID.
Structs§
- Capture
Policy - Bounds and stdin handling for one capture.
- Command
Output - Owned
Process - Owns both the child and the cancellation capability. Never put this in editor state: Drop may wait, so it belongs exclusively to a worker stack.
Enums§
- Capture
Error - Why a capture did not produce output.
capturefolds these back into the historicalFailurespellings; richer callers (remote exec) match on them directly. - Stdin
Policy - What capture does with the child’s stdin.
Functions§
- capture
- At most 64 KiB per pipe, 30 seconds, stdin from
/dev/null. No terminal input/output is inherited. - capture_
with - Run one command to completion under explicit bounds. The child runs
in its own process group owned by
OwnedProcess; cancellation SIGKILLs it, the deadline kills it, and both pipes are drained concurrently with bounded retention.