Mercurial > hg > nginx
comparison src/core/nginx.c @ 185:d5f50cefc322
nginx-0.0.1-2003-11-14-19:52:04 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 14 Nov 2003 16:52:04 +0000 |
parents | 3c49eaf3f522 |
children | c1f3a3c7c5db |
comparison
equal
deleted
inserted
replaced
184:1bf718ce0dde | 185:d5f50cefc322 |
---|---|
1 | 1 |
2 #include <ngx_config.h> | 2 #include <ngx_config.h> |
3 #include <ngx_core.h> | 3 #include <ngx_core.h> |
4 #include <ngx_event.h> | 4 #include <ngx_event.h> |
5 #include <nginx.h> | 5 #include <nginx.h> |
6 | |
7 | |
8 /* STUB */ | |
9 void stub_init(ngx_log_t *log); | |
6 | 10 |
7 | 11 |
8 static ngx_cycle_t *ngx_init_cycle(ngx_cycle_t *old_cycle, ngx_log_t *log); | 12 static ngx_cycle_t *ngx_init_cycle(ngx_cycle_t *old_cycle, ngx_log_t *log); |
9 static int ngx_open_listening_sockets(ngx_cycle_t *cycle, ngx_log_t *log); | 13 static int ngx_open_listening_sockets(ngx_cycle_t *cycle, ngx_log_t *log); |
10 static void ngx_clean_old_cycles(ngx_event_t *ev); | 14 static void ngx_clean_old_cycles(ngx_event_t *ev); |
90 log = ngx_log_init_errlog(); | 94 log = ngx_log_init_errlog(); |
91 | 95 |
92 if (ngx_os_init(log) == NGX_ERROR) { | 96 if (ngx_os_init(log) == NGX_ERROR) { |
93 return 1; | 97 return 1; |
94 } | 98 } |
99 | |
100 stub_init(log); | |
95 | 101 |
96 ngx_max_module = 0; | 102 ngx_max_module = 0; |
97 for (i = 0; ngx_modules[i]; i++) { | 103 for (i = 0; ngx_modules[i]; i++) { |
98 ngx_modules[i]->index = ngx_max_module++; | 104 ngx_modules[i]->index = ngx_max_module++; |
99 } | 105 } |