summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index f9df355..2385bf8 100644
--- a/main.c
+++ b/main.c
@@ -250,6 +250,9 @@ signalfd_init(struct cfg *cfg)
sigaction(SIGHUP, &action, NULL);
sigaction(SIGTERM, &action, NULL);
+ action.sa_handler = SIG_IGN;
+ sigaction(SIGPIPE, &action, NULL);
+
sfd = eventfd(0, EFD_CLOEXEC);
if (sfd < 0)
perrordie("eventfd");