From 9c8bb29bbe205a0cb0dc7e3ae7278b045523732e Mon Sep 17 00:00:00 2001 From: Alberto Leiva Popper Date: Fri, 2 Jul 2021 18:56:34 -0500 Subject: [PATCH] init: Remove SIGPIPE SIG_IGN override during RTR server startup Because it's now redundant. As discovered in #49, SIGPIPE is total bullshit in all circumstances, no exceptions, so there's now a global SIGPIPE SIG_IGN override, rendering this one useless. I guess we now know why #49 never triggered on server mode. --- src/rtr/rtr.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/rtr/rtr.c b/src/rtr/rtr.c index 4d39a861..6855c50e 100644 --- a/src/rtr/rtr.c +++ b/src/rtr/rtr.c @@ -3,7 +3,6 @@ #include #include #include -#include #include #include #include @@ -582,15 +581,8 @@ static int start_server_thread(void) { struct fd_node *node; - struct sigaction ign; int error; - /* Ignore SIGPIPES, they're handled apart */ - ign.sa_handler = SIG_IGN; - ign.sa_flags = 0; - sigemptyset(&ign.sa_mask); - sigaction(SIGPIPE, &ign, NULL); - SLIST_FOREACH(node, &fds, next) { error = listen(node->id, config_get_server_queue()); if (error) -- 2.47.3