aboutsummaryrefslogtreecommitdiff
path: root/src/core/nginx.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-04-28 15:06:39 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-04-28 15:06:39 +0000
commit1d8d9eee942ab1d2565048e00d1817147c49f48c (patch)
tree05b00d2609f9a7264f2356b559353b466d1be0d4 /src/core/nginx.c
parenta09f08dbab9f06b81c1224a32607b26292015c8b (diff)
downloadnginx-1d8d9eee942ab1d2565048e00d1817147c49f48c.tar.gz
nginx-1d8d9eee942ab1d2565048e00d1817147c49f48c.zip
nginx-0.0.1-2003-04-28-19:06:39 import
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r--src/core/nginx.c10
1 files changed, 2 insertions, 8 deletions
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 */