From 094ecaf3b7de251494c313df692e056451a9ba19 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 16 Sep 2012 00:27:07 +0200 Subject: Ignore SIGPIPE We want this because of reasons. Just to be sure. --- src/fastd.c | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- cgit v1.2.3