summaryrefslogtreecommitdiff
path: root/cethcan/cethcan.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2013-10-12 14:39:47 +0000
committerroot <root@beaglebone.local.sublab.org>2014-04-27 17:57:39 +0000
commite59e58f958c8e741edbbc9d85ec7289dc88cc31a (patch)
tree4ff41d71937bd631f631b35773f8cde0b873ddbe /cethcan/cethcan.h
parent2c29a04e745eba7c03d7251c697bfc519e0c0f9d (diff)
cethcan: ignore SIG{PIPE,HUP,USR1,USR2}
SIGPIPE was causing cethcan to exit prematurely. (probably due to a http connection getting closed down.) The other signals are reasonable for a daemon to _not_ cause an exit.
Diffstat (limited to 'cethcan/cethcan.h')
-rw-r--r--cethcan/cethcan.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cethcan/cethcan.h b/cethcan/cethcan.h
index 6763006..ab5edde 100644
--- a/cethcan/cethcan.h
+++ b/cethcan/cethcan.h
@@ -18,6 +18,7 @@
#include <sys/uio.h>
#include <fcntl.h>
#include <time.h>
+#include <signal.h>
#include <assert.h>
#include <event2/event.h>