broken-pipe 0.1.0

Makes the Rust standard library set `SIGPIPE` to kill.
1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2026 Martin Nordholts
// SPDX-License-Identifier: MIT

#![feature(on_broken_pipe)]
#![feature(extern_item_impls)]

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