diff options
| author | 2023-02-10 13:45:26 +0100 | |
|---|---|---|
| committer | 2023-02-10 13:45:26 +0100 | |
| commit | 5f89816bb42b4cc66d87ae419803f0a081b0108c (patch) | |
| tree | 4e1ab1e4a1f4702d94a291fdb5c8b6a255e83a16 /httpd.c | |
| parent | Show the fd rlimit at httpd startup. (diff) | |
| download | snac2-5f89816bb42b4cc66d87ae419803f0a081b0108c.tar.gz snac2-5f89816bb42b4cc66d87ae419803f0a081b0108c.tar.xz snac2-5f89816bb42b4cc66d87ae419803f0a081b0108c.zip | |
Show (dbglevel 1) the number of file descriptors available.
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -419,9 +419,10 @@ void httpd(void) | |||
| 419 | 419 | ||
| 420 | srv_log(xs_fmt("httpd start %s:%d %s", address, port, USER_AGENT)); | 420 | srv_log(xs_fmt("httpd start %s:%d %s", address, port, USER_AGENT)); |
| 421 | 421 | ||
| 422 | /* show the number of usable file descriptors */ | ||
| 422 | struct rlimit r; | 423 | struct rlimit r; |
| 423 | getrlimit(RLIMIT_NOFILE, &r); | 424 | getrlimit(RLIMIT_NOFILE, &r); |
| 424 | srv_debug(0, xs_fmt("available (rlimit) fds: %d (cur)/%d (max)", | 425 | srv_debug(1, xs_fmt("available (rlimit) fds: %d (cur) / %d (max)", |
| 425 | (int) r.rlim_cur, (int) r.rlim_max)); | 426 | (int) r.rlim_cur, (int) r.rlim_max)); |
| 426 | 427 | ||
| 427 | /* initialize the job control engine */ | 428 | /* initialize the job control engine */ |