Skip to main content

BROKEN_PIPE_EXIT_CODE

Constant BROKEN_PIPE_EXIT_CODE 

Source
pub const BROKEN_PIPE_EXIT_CODE: u8 = 141;
Expand description

Process exit code returned when stdout is a closed pipe.

141 is 128 + SIGPIPE(13), the Unix convention a shell reports when a consumer such as head or jaq exits early. Windows has no SIGPIPE, so the same number is produced there by classifying the stdout write error as std::io::ErrorKind::BrokenPipe — the exit-code contract is identical on Linux, macOS and Windows.