From 6e43a35ad73df70b79248ba7f30741ea85be4d5c Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 22 Jun 2008 10:48:15 +0200 Subject: [PATCH] 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.. ;) --- src/rrdd.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.11.0