pipecheck is a Rust Write wrapper that handles broken pipe errors by terminating the current process.
See the crate documentation for details.
pipecheck was first implemented as a private module in xt
in May 2023, then extracted into an independent crate in October 2025.
As of January 2026, I have two ideas for improvement:
- Support customizing the fallback exit code.
- Possibly update the current thread's signal mask to unblock SIGPIPE, like the Go implementation. I can't decide on this one.
With those, and with improved cross-platform testing in place, it would be nice
to ship a v1.0.0 and only release new versions if Rust stabilizes new Write
methods or gaps in platform support are found (the crate is so simple there's
little room for feature work). However, this is a very low-priority side project.