mirror of
https://github.com/nginx/nginx.git
synced 2025-02-03 12:00:33 -06:00
move ngx_strerror_init() at the very start
This commit is contained in:
parent
8c6144f022
commit
a979d9fb30
@ -203,6 +203,10 @@ main(int argc, char *const *argv)
|
|||||||
ngx_cycle_t *cycle, init_cycle;
|
ngx_cycle_t *cycle, init_cycle;
|
||||||
ngx_core_conf_t *ccf;
|
ngx_core_conf_t *ccf;
|
||||||
|
|
||||||
|
if (ngx_strerror_init() != NGX_OK) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (ngx_get_options(argc, argv) != NGX_OK) {
|
if (ngx_get_options(argc, argv) != NGX_OK) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -270,10 +274,6 @@ main(int argc, char *const *argv)
|
|||||||
|
|
||||||
ngx_pid = ngx_getpid();
|
ngx_pid = ngx_getpid();
|
||||||
|
|
||||||
if (ngx_strerror_init() != NGX_OK) {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
log = ngx_log_init(ngx_prefix);
|
log = ngx_log_init(ngx_prefix);
|
||||||
if (log == NULL) {
|
if (log == NULL) {
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user