X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrdd.c;h=14543ce08e23eb0a2aa339e3519119d9106b2983;hb=6e43a35ad73df70b79248ba7f30741ea85be4d5c;hp=8aa5a585165fc590ebe56bd1ebe9d2088e9a7063;hpb=e6b58c28270ef317d68308edbadecbb598009e36;p=rrdd.git 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);