diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-09-16 00:27:07 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-09-16 00:27:07 +0200 |
commit | 094ecaf3b7de251494c313df692e056451a9ba19 (patch) | |
tree | a0f1d5917ddf2b97494aa0dfb8c1934ae0532677 /src/fastd.c | |
parent | f33d7756b8361ca38991bfe9d39ea5de13f86dfc (diff) | |
download | fastd-094ecaf3b7de251494c313df692e056451a9ba19.tar fastd-094ecaf3b7de251494c313df692e056451a9ba19.zip |
Ignore SIGPIPE
We want this because of reasons. Just to be sure.
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 4 |
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) { |