diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-05-19 16:39:14 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-05-19 16:39:14 +0000 |
commit | a98301160de4c12f455cca8f78509f2e04626c0b (patch) | |
tree | cdf14046298d40ca8398925603fb4011360b187a /src/os/unix/ngx_init.c | |
parent | bb4ec5c1721defd7b10f83ace51bddb71726dd1a (diff) | |
download | nginx-a98301160de4c12f455cca8f78509f2e04626c0b.tar.gz nginx-a98301160de4c12f455cca8f78509f2e04626c0b.zip |
nginx-0.0.1-2003-05-19-20:39:14 import
Diffstat (limited to 'src/os/unix/ngx_init.c')
-rw-r--r-- | src/os/unix/ngx_init.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/os/unix/ngx_init.c b/src/os/unix/ngx_init.c deleted file mode 100644 index 28af1288d..000000000 --- a/src/os/unix/ngx_init.c +++ /dev/null @@ -1,20 +0,0 @@ - - -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; -} |