From: Egor Date: Sat, 18 Feb 2023 14:36:54 +0000 (+0200) Subject: ignore SIGPIPE X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=82a24b690f4c78149c293e95f42124849c4f39b9;p=patchyircd.git ignore SIGPIPE --- diff --git a/main.c b/main.c index 3fcf7dd..cbaeb66 100644 --- a/main.c +++ b/main.c @@ -19,6 +19,7 @@ static void set_handler() sa.sa_flags = SA_RESETHAND; // only run it once if (sigaction(SIGINT, &sa, NULL) == -1) perror("sigaction"); + signal(SIGPIPE, SIG_IGN); } #else static int is_running = 1;