From 52d77847622273fe9ec42a083261c09fe82d057e Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 2 Apr 2020 16:33:08 -0400 Subject: Do not crash on error from accept in calico --- dispatch.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dispatch.c b/dispatch.c index c2e2d50..c558729 100644 --- a/dispatch.c +++ b/dispatch.c @@ -252,7 +252,10 @@ int main(int argc, char *argv[]) { if (i < binds) { int sock = accept(event.ptr[i].fd, NULL, NULL); - if (sock < 0) err(EX_IOERR, "accept"); + if (sock < 0) { + warn("accept"); + continue; + } int yes = 1; error = setsockopt( -- cgit 1.4.1