diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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"); |