1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-05 07:27:46 +00:00

change ~ use updated SIGPIPE in procs

This commit is contained in:
Roy Ivy III 2020-05-23 12:23:05 -05:00
parent 0432063479
commit c32ff9e8bb

View file

@ -54,7 +54,7 @@ pub fn main(stream: proc_macro::TokenStream) -> proc_macro::TokenStream {
let result = quote::quote! { let result = quote::quote! {
fn main() { fn main() {
use std::io::Write; use std::io::Write;
uucore::panic::install_sigpipe_hook(); uucore::panic::mute_sigpipe_panic();
let code = #f; let code = #f;
std::io::stdout().flush().expect("could not flush stdout"); std::io::stdout().flush().expect("could not flush stdout");
std::process::exit(code); std::process::exit(code);