summary refs log tree commit diff
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
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(
tr>2015-08-13tests: allow shell to be overriddenJohn Keeping 2015-08-13redirect: cleanlinessJason A. Donenfeld 2015-08-13redirect: be more careful for different cgi setupsJason A. Donenfeld 2015-08-12ui-log: fix double countingJohn Keeping 2015-08-12log: allow users to follow a fileJohn Keeping 2015-08-12shared: make cgit_diff_tree_cb publicJohn Keeping 2015-08-12t0110: Chain together using &&Jason A. Donenfeld 2015-08-12about: always ensure page has a trailing slashJason A. Donenfeld 2015-08-12filters: apply HTML escapingLazaros Koromilas 2015-08-12git: update to v2.5.0Christian Hesse 2015-08-12Fix processing of repo.hide and repo.ignoreDaniel Reichelt