Mercurial > hg > nginx
diff src/core/ngx_cycle.c @ 6378:0f203a2af17c
Dynamic modules: moved module-related stuff to separate files.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 04 Feb 2016 18:30:21 +0300 |
parents | 1b7e246e6b38 |
children | cf5e822cf470 |
line wrap: on
line diff
--- a/src/core/ngx_cycle.c Thu Feb 04 18:01:04 2016 +0300 +++ b/src/core/ngx_cycle.c Thu Feb 04 18:30:21 2016 +0300 @@ -612,13 +612,9 @@ pool->log = cycle->log; - for (i = 0; ngx_modules[i]; i++) { - if (ngx_modules[i]->init_module) { - if (ngx_modules[i]->init_module(cycle) != NGX_OK) { - /* fatal */ - exit(1); - } - } + if (ngx_init_modules(cycle) != NGX_OK) { + /* fatal */ + exit(1); }