diff options
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) { |