From df4fb84ae19267b534beb94560da524fc72f436b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9lanie=20Chauvel?= Date: Sun, 5 Dec 2021 18:22:38 +0100 Subject: [PATCH] =?UTF-8?q?don=E2=80=99t=20display=20broken=20pipe=20error?= =?UTF-8?q?=20messages=20(see=20rust-lang/rust#46016)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 6730993..ef46fc8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -50,6 +50,10 @@ mod theme; fn main() { use std::process::exit; + unsafe { + libc::signal(libc::SIGPIPE, libc::SIG_DFL); + } + logger::configure(env::var_os(vars::EXA_DEBUG)); let args: Vec<_> = env::args_os().skip(1).collect();