Skip to main content

DRAIN_TIMEOUT

Constant DRAIN_TIMEOUT 

Source
pub(crate) const DRAIN_TIMEOUT: Duration;
Expand description

Upper bound for waiting on the next output after the process exited. The read loops may still be draining the pipes when the exit is observed, they signal the end with Message::Done. The timeout only kicks in if that never arrives, for example because a grandchild keeps the pipe open.