From 1d8d9eee942ab1d2565048e00d1817147c49f48c Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 28 Apr 2003 15:06:39 +0000 Subject: nginx-0.0.1-2003-04-28-19:06:39 import --- src/core/nginx.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/core/nginx.c') diff --git a/src/core/nginx.c b/src/core/nginx.c index 36a28f887..30c068007 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -89,6 +89,8 @@ int main(int argc, char *const *argv) return 1; } + ngx_init_temp_number(); + for (i = 0; ngx_modules[i]; i++) { if (ngx_modules[i]->init_module) { if (ngx_modules[i]->init_module(ngx_pool) == NGX_ERROR) { @@ -97,14 +99,6 @@ int main(int argc, char *const *argv) } } - -#if 0 - /* STUB */ - /* TODO: init chain of global modules (like ngx_http.c), - they would init its modules and ngx_listening_sockets */ - ngx_http_init(ngx_pool, &ngx_log); -#endif - ngx_open_listening_sockets(&ngx_log); /* TODO: daemon */ -- cgit v1.2.3