diff options
| -rw-r--r-- | src/ipc/client.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ipc/client.rs b/src/ipc/client.rs index 424b243d..97413d0b 100644 --- a/src/ipc/client.rs +++ b/src/ipc/client.rs @@ -43,6 +43,11 @@ pub fn handle_msg(msg: Msg, json: bool) -> anyhow::Result<()> { .map_err(|msg| anyhow!(msg)) .context("niri could not handle the request")?; + // Default SIGPIPE so that our prints don't panic on stdout closing. + unsafe { + libc::signal(libc::SIGPIPE, libc::SIG_DFL); + } + match msg { Msg::Outputs => { let Response::Outputs(outputs) = response else { |
