Skip to content

Commit

Permalink
fix(sigpipe): terminate if pipe is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
QaidVoid committed Nov 4, 2024
1 parent 5cc4559 commit f54362d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ use soar::{core::color::Color, core::color::ColorExt, error, init};

#[tokio::main]
async fn main() {
unsafe {
libc::signal(libc::SIGPIPE, libc::SIG_DFL);
}

if let Err(e) = init().await {
error!("{}", e);
}
Expand Down

0 comments on commit f54362d

Please sign in to comment.