diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-05 22:04:01 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-05 22:04:01 +0200 |
commit | 8e301216143cb96d39a941a9c5fcb90319ef53c7 (patch) | |
tree | 066ea8b408ff49e20e2be2303364a35ff1731d15 /main.c | |
parent | a683051b05930d1dd2766b98494bbd124817a6dd (diff) |
Add enough functionality to actually be able to proxy a connection
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"); |