Mercurial > hg > nginx-quic
comparison src/core/nginx.c @ 448:241dc8092a33
nginx-0.1.0-2004-10-01-19:53:53 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 01 Oct 2004 15:53:53 +0000 |
parents | 42d11f017717 |
children | 3b1e8c9df9ad |
comparison
equal
deleted
inserted
replaced
447:288f249897e7 | 448:241dc8092a33 |
---|---|
116 ngx_regex_init(); | 116 ngx_regex_init(); |
117 #endif | 117 #endif |
118 | 118 |
119 ngx_pid = ngx_getpid(); | 119 ngx_pid = ngx_getpid(); |
120 | 120 |
121 if (!(log = ngx_log_init_errlog())) { | 121 if (!(log = ngx_log_init_stderr())) { |
122 return 1; | 122 return 1; |
123 } | 123 } |
124 | 124 |
125 #if (NGX_OPENSSL) | 125 #if (NGX_OPENSSL) |
126 ngx_ssl_init(log); | 126 ngx_ssl_init(log); |
140 return 1; | 140 return 1; |
141 } | 141 } |
142 | 142 |
143 if (ngx_getopt(&ctx, &init_cycle) == NGX_ERROR) { | 143 if (ngx_getopt(&ctx, &init_cycle) == NGX_ERROR) { |
144 return 1; | 144 return 1; |
145 } | |
146 | |
147 if (ngx_test_config) { | |
148 log->log_level = NGX_LOG_INFO; | |
149 } else { | |
150 if (ngx_log_init_error_log() == NGX_ERROR) { | |
151 return 1; | |
152 } | |
145 } | 153 } |
146 | 154 |
147 if (ngx_os_init(log) == NGX_ERROR) { | 155 if (ngx_os_init(log) == NGX_ERROR) { |
148 return 1; | 156 return 1; |
149 } | 157 } |