pub fn closed_pipe(message: &str) -> boolExpand description
True when message is the panic of a print to stdout or stderr that
failed because the reader closed the pipe. println!, eprintln!
and the macros of anstream panic with this message.
use riff_core::pipe::closed_pipe;
assert!(closed_pipe("failed printing to stderr: Broken pipe (os error 32)"));
assert!(!closed_pipe("Broken pipe (os error 32)"));