diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-04-08 15:40:10 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-04-08 15:40:10 +0000 |
commit | e2a3154f0e3020e1f21f5a88b29daf8cc26e0dc5 (patch) | |
tree | 6198fc644d2efe9d10bab8b87004a70324d6cf5d /src/core/nginx.c | |
parent | 3f76ec190a3bd398c229deb0b4f298b9637a3129 (diff) | |
download | nginx-e2a3154f0e3020e1f21f5a88b29daf8cc26e0dc5.tar.gz nginx-e2a3154f0e3020e1f21f5a88b29daf8cc26e0dc5.zip |
nginx-0.0.1-2003-04-08-19:40:10 import
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r-- | src/core/nginx.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c index 895d13666..36a28f887 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -36,6 +36,8 @@ ngx_log_t ngx_log; ngx_pool_t *ngx_pool; +int ngx_max_module; + int ngx_connection_counter; ngx_array_t ngx_listening_sockets; @@ -68,6 +70,11 @@ int main(int argc, char *const *argv) ngx_init_array(ngx_listening_sockets, ngx_pool, 10, sizeof(ngx_listen_t), 1); + ngx_max_module = 0; + for (i = 0; ngx_modules[i]; i++) { + ngx_modules[i]->index = ngx_max_module++; + } + ngx_memzero(&conf, sizeof(ngx_conf_t)); ngx_test_null(conf.args, ngx_create_array(ngx_pool, 10, sizeof(ngx_str_t)), 1); |