mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 11:40:27 +03:00
Show (dbglevel 1) the number of file descriptors available.
This commit is contained in:
parent
03325d04a5
commit
5f89816bb4
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));
|
||||
|
||||
/* show the number of usable file descriptors */
|
||||
struct rlimit 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));
|
||||
|
||||
/* initialize the job control engine */
|
||||
|
Loading…
Reference in New Issue
Block a user