projects
/
rrdd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src/rrdd.c: Ignore SIGPIPE.
[rrdd.git]
/
src
/
rrdd.c
diff --git
a/src/rrdd.c
b/src/rrdd.c
index
8aa5a58
..
14543ce
100644
(file)
--- 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);