broken-pipe-errors 0.3.1

Stops the Rust standard library from changing the SIPGIPE signal mask in child processes.
1
2
3
4
5
6
7
8
9
// Copyright (c) 2026 Martin Nordholts
// SPDX-License-Identifier: MIT

#![feature(on_broken_pipe)]

#[std::io::on_broken_pipe]
fn on_broken_pipe() -> std::io::OnBrokenPipe {
    std::io::OnBrokenPipe::Error
}