commit 5f89816
default
·
2023-02-10 12:45:26 +0000 UTC
parent 03325d0
Show (dbglevel 1) the number of file descriptors available.
1 files changed,
+2,
-1
M
httpd.c
M
httpd.c
+2,
-1
1@@ -419,9 +419,10 @@ void httpd(void)
2
3 srv_log(xs_fmt("httpd start %s:%d %s", address, port, USER_AGENT));
4
5+ /* show the number of usable file descriptors */
6 struct rlimit r;
7 getrlimit(RLIMIT_NOFILE, &r);
8- srv_debug(0, xs_fmt("available (rlimit) fds: %d (cur)/%d (max)",
9+ srv_debug(1, xs_fmt("available (rlimit) fds: %d (cur) / %d (max)",
10 (int) r.rlim_cur, (int) r.rlim_max));
11
12 /* initialize the job control engine */