Mercurial > hg > nginx
comparison src/core/nginx.c @ 83:a7e45c45a95c
nginx-0.0.1-2003-04-28-19:06:39 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 28 Apr 2003 15:06:39 +0000 |
parents | 59229033ae93 |
children | 3973260705cc |
comparison
equal
deleted
inserted
replaced
82:fccdb921e8b8 | 83:a7e45c45a95c |
---|---|
87 | 87 |
88 if (ngx_conf_parse(&conf, &conf_file) != NGX_CONF_OK) { | 88 if (ngx_conf_parse(&conf, &conf_file) != NGX_CONF_OK) { |
89 return 1; | 89 return 1; |
90 } | 90 } |
91 | 91 |
92 ngx_init_temp_number(); | |
93 | |
92 for (i = 0; ngx_modules[i]; i++) { | 94 for (i = 0; ngx_modules[i]; i++) { |
93 if (ngx_modules[i]->init_module) { | 95 if (ngx_modules[i]->init_module) { |
94 if (ngx_modules[i]->init_module(ngx_pool) == NGX_ERROR) { | 96 if (ngx_modules[i]->init_module(ngx_pool) == NGX_ERROR) { |
95 return 1; | 97 return 1; |
96 } | 98 } |
97 } | 99 } |
98 } | 100 } |
99 | |
100 | |
101 #if 0 | |
102 /* STUB */ | |
103 /* TODO: init chain of global modules (like ngx_http.c), | |
104 they would init its modules and ngx_listening_sockets */ | |
105 ngx_http_init(ngx_pool, &ngx_log); | |
106 #endif | |
107 | 101 |
108 ngx_open_listening_sockets(&ngx_log); | 102 ngx_open_listening_sockets(&ngx_log); |
109 | 103 |
110 /* TODO: daemon */ | 104 /* TODO: daemon */ |
111 | 105 |