summary refs log tree commit diff
path: root/dispatch.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-02 16:33:08 -0400
committerJune McEnroe <june@causal.agency>2020-04-02 16:33:08 -0400
commit52d77847622273fe9ec42a083261c09fe82d057e (patch)
tree1146a8e532389d02dd614b5a358cd0e60379dc3e /dispatch.c
parentSend ERR_NOMOTD during sync (diff)
downloadpounce-52d77847622273fe9ec42a083261c09fe82d057e.tar.gz
pounce-52d77847622273fe9ec42a083261c09fe82d057e.zip
Do not crash on error from accept in calico
Diffstat (limited to '')
-rw-r--r--dispatch.c5
1 files changed, 4 insertions, 1 deletions
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(
c72f87fe37b67a718e4bafa9361fce6&follow=1'>Simplify macOS notify-sendJune McEnroe 2020-02-12Add imbox and notemap to pageJune McEnroe 2020-02-12Collapse simple linksJune McEnroe 2020-02-12Move catgirl up the pageJune McEnroe 2020-02-12Update catgirl pty grabJune McEnroe 2020-02-12Link to cgit /about pages where appropriateJune McEnroe 2020-02-11Separate LINKS from BINS for html to workJune McEnroe 2020-02-11Add margin to Bl-bullet itemsJune McEnroe 2020-02-10Match URLs inside parens or with paired parens insideJune McEnroe 2020-02-10Duplicate effective URL before passing it back to curlJune McEnroe 2020-02-09Add To Be Taught, If FortunateJune McEnroe 2020-02-04Add The Future of Another TimelineJune McEnroe 2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe 2020-01-28Change scout sensitivity to 1.4June McEnroe 2020-01-28Import shows.txtJune McEnroe