projects
/
rrdd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6b58c2
)
src/rrdd.c: Ignore SIGPIPE.
author
Florian Forster
<octo@leeloo.home.verplant.org>
Sun, 22 Jun 2008 08:48:15 +0000
(10:48 +0200)
committer
Florian Forster
<octo@leeloo.home.verplant.org>
Sun, 22 Jun 2008 08:48:15 +0000
(10:48 +0200)
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
patch
|
blob
|
history
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);