From c7223d7e0cd74562255eb80d02d659e6901d43b9 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 6 Nov 2019 17:04:20 -0500 Subject: Declare more missing functions and deal with lack of SO_NOSIGPIPE --- dispatch.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dispatch.c') diff --git a/dispatch.c b/dispatch.c index e52efc7..e80f297 100644 --- a/dispatch.c +++ b/dispatch.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -32,6 +33,8 @@ #include #endif +#include "compat.h" + static struct { struct pollfd *ptr; size_t len, cap; @@ -231,6 +234,7 @@ int main(int argc, char *argv[]) { if (error) err(EX_IOERR, "listen"); } + signal(SIGPIPE, SIG_IGN); for (;;) { int nfds = poll( event.ptr, event.len, (event.len > binds ? timeout : -1) -- cgit 1.4.1