From: Florian Forster Date: Sun, 22 Jun 2008 08:48:15 +0000 (+0200) Subject: src/rrdd.c: Ignore SIGPIPE. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6e43a35ad73df70b79248ba7f30741ea85be4d5c;p=rrdd.git src/rrdd.c: Ignore SIGPIPE. This signal may be sent if a client closes the connection before reading the reply. We don't want to die in this case.. ;) --- diff --git a/src/rrdd.c b/src/rrdd.c index 8aa5a58..14543ce 100644 --- a/src/rrdd.c +++ b/src/rrdd.c @@ -632,6 +632,10 @@ static int daemonize (void) /* {{{ */ memset (&sa, 0, sizeof (sa)); sa.sa_handler = sig_term_handler; sigaction (SIGINT, &sa, NULL); + + memset (&sa, 0, sizeof (sa)); + sa.sa_handler = SIG_IGN; + sigaction (SIGPIPE, &sa, NULL); } openlog ("rrdd", LOG_PID, LOG_DAEMON);