Mercurial > hg > nginx
comparison src/core/nginx.c @ 105:00bee6e7b485
nginx-0.0.1-2003-06-15-22:32:13 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 15 Jun 2003 18:32:13 +0000 |
parents | 6dfda4cf5200 |
children | 9f9de4deda7e |
comparison
equal
deleted
inserted
replaced
104:7db96f59bc29 | 105:00bee6e7b485 |
---|---|
39 ngx_log.fd = STDERR_FILENO; | 39 ngx_log.fd = STDERR_FILENO; |
40 ngx_log.log_level = NGX_LOG_INFO; | 40 ngx_log.log_level = NGX_LOG_INFO; |
41 | 41 |
42 /* STUB */ ngx_log.log_level = NGX_LOG_DEBUG; | 42 /* STUB */ ngx_log.log_level = NGX_LOG_DEBUG; |
43 #endif | 43 #endif |
44 | |
44 log = ngx_log_init_errlog(); | 45 log = ngx_log_init_errlog(); |
45 | 46 |
46 if (ngx_os_init(log) == NGX_ERROR) { | 47 if (ngx_os_init(log) == NGX_ERROR) { |
47 return 1; | 48 return 1; |
48 } | 49 } |
228 "try again to bind() after 500ms"); | 229 "try again to bind() after 500ms"); |
229 ngx_msleep(500); | 230 ngx_msleep(500); |
230 } | 231 } |
231 | 232 |
232 if (failed) { | 233 if (failed) { |
234 | |
235 /* TODO: configurable */ | |
236 | |
233 ngx_log_error(NGX_LOG_EMERG, log, 0, "can not bind(), exiting"); | 237 ngx_log_error(NGX_LOG_EMERG, log, 0, "can not bind(), exiting"); |
234 return NGX_ERROR; | 238 return NGX_ERROR; |
235 } | 239 } |
236 | 240 |
237 return NGX_OK; | 241 return NGX_OK; |