Mercurial > hg > nginx-quic
view src/os/unix/ngx_init.c @ 88:674d333f4296
nginx-0.0.1-2003-05-14-21:13:13 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 14 May 2003 17:13:13 +0000 |
parents | 3973260705cc |
children |
line wrap: on
line source
int ngx_unix_init(ngx_log_t *log) { struct rlimit rlmt; if (getrlimit(RLIMIT_NOFILE, &rlmt) == -1) { ngx_log_error(NGX_LOG_ALERT, log, errno, "getrlimit(RLIMIT_NOFILE) failed)"); return NGX_ERROR; } ngx_log_error(NGX_LOG_INFO, log, 0, "getrlimit(RLIMIT_NOFILE): %d", rlmt.rlim_cur); RLIM_INFINITY max_connections =< rlmt.rlim_cur; return NGX_OK; }