summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-09-16 00:27:07 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-09-16 00:27:07 +0200
commit094ecaf3b7de251494c313df692e056451a9ba19 (patch)
treea0f1d5917ddf2b97494aa0dfb8c1934ae0532677 /src
parentf33d7756b8361ca38991bfe9d39ea5de13f86dfc (diff)
downloadfastd-094ecaf3b7de251494c313df692e056451a9ba19.tar
fastd-094ecaf3b7de251494c313df692e056451a9ba19.zip
Ignore SIGPIPE
We want this because of reasons. Just to be sure.
Diffstat (limited to 'src')
-rw-r--r--src/fastd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fastd.c b/src/fastd.c
index 1990b36..f1df118 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -75,6 +75,10 @@ static void init_signals(fastd_context *ctx) {
exit_errno(ctx, "sigaction");
if(sigaction(SIGINT, &action, NULL))
exit_errno(ctx, "sigaction");
+
+ action.sa_handler = SIG_IGN;
+ if(sigaction(SIGPIPE, &action, NULL))
+ exit_errno(ctx, "sigaction");
}
static void init_pipes(fastd_context *ctx) {