//! Stdout writing that exits cleanly on a closed pipe instead of panicking.
use ;
use Result;
/// When the downstream reader has closed the pipe (e.g. `imsg … | head`), exits the process
/// with status 0 rather than panicking.
///
/// # Errors
///
/// Returns an error for any stdout write failure other than a broken pipe.
pub