aboutsummaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@noreply.codeberg.org>2026-02-23 05:28:15 +0100
committergrunfink <grunfink@noreply.codeberg.org>2026-02-23 05:28:15 +0100
commite1e64ac0af3a3b0e15a107e7ca636bc89c63fd47 (patch)
tree67091d06b15e04ea30168bd3f41f39c422314c95 /httpd.c
parent787d0180bff0655045c3cf42bf8868609c11a6f5 (diff)
parent361fdaaa11226554854cb292fe0ed6b372898320 (diff)
Merge pull request 'Log xs_socket_accept failure reason and document OpenBSD login class w/ extended openfiles' (#559) from oxzi/snac2:openbsd-openfiles-nfiles into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/559
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/httpd.c b/httpd.c
index f46cfca..219af19 100644
--- a/httpd.c
+++ b/httpd.c
@@ -1116,9 +1116,10 @@ void httpd(void)
FILE *f = fdopen(cs, "r+");
xs *job = xs_data_new(&f, sizeof(FILE *));
job_post(job, 1);
- }
- else
+ } else {
+ srv_log(xs_fmt("error: xs_socket_accept failed: %s", strerror(errno)));
break;
+ }
}
}