mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
Show (dbglevel 1) the number of file descriptors available.
This commit is contained in:
parent
03325d04a5
commit
5f89816bb4
1 changed files with 2 additions and 1 deletions
3
httpd.c
3
httpd.c
|
@ -419,9 +419,10 @@ void httpd(void)
|
||||||
|
|
||||||
srv_log(xs_fmt("httpd start %s:%d %s", address, port, USER_AGENT));
|
srv_log(xs_fmt("httpd start %s:%d %s", address, port, USER_AGENT));
|
||||||
|
|
||||||
|
/* show the number of usable file descriptors */
|
||||||
struct rlimit r;
|
struct rlimit r;
|
||||||
getrlimit(RLIMIT_NOFILE, &r);
|
getrlimit(RLIMIT_NOFILE, &r);
|
||||||
srv_debug(0, xs_fmt("available (rlimit) fds: %d (cur)/%d (max)",
|
srv_debug(1, xs_fmt("available (rlimit) fds: %d (cur) / %d (max)",
|
||||||
(int) r.rlim_cur, (int) r.rlim_max));
|
(int) r.rlim_cur, (int) r.rlim_max));
|
||||||
|
|
||||||
/* initialize the job control engine */
|
/* initialize the job control engine */
|
||||||
|
|
Loading…
Reference in a new issue