aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-06-10 10:25:54 +0000
committerOmar Polo <op@omarpolo.com>2024-06-10 10:25:54 +0000
commitf2c45fdab09688285c3e69d1bcd7d9b507071a0e (patch)
treedf938280c0cbad72b386d4a0b4d7c3a98b1d9693
parentd4955d289157e9a721ab5bd1577ed81da8a39a68 (diff)
warn instead of dieing on unknown accept(2) failures
-rw-r--r--server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.c b/server.c
index 555418f..6a10569 100644
--- a/server.c
+++ b/server.c
@@ -1308,7 +1308,8 @@ server_accept(int sock, short et, void *d)
if (errno == EWOULDBLOCK || errno == EAGAIN ||
errno == ECONNABORTED)
return;
- fatal("accept");
+ log_warnx("accept failed");
+ return;
}
mark_nonblock(fd);