diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2016-02-04 18:30:21 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2016-02-04 18:30:21 +0300 |
commit | 798833457018ee8a6274ec78e816f747361c0d47 (patch) | |
tree | a8a905538380af822e90b3fc5571de836c3b3aba /src/core/ngx_cycle.c | |
parent | 9add42c71e71c2af8e67eceeeb773d22a9cab760 (diff) |
Dynamic modules: moved module-related stuff to separate files.
Diffstat (limited to 'src/core/ngx_cycle.c')
-rw-r--r-- | src/core/ngx_cycle.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c index ad4bf9254..bebb3732e 100644 --- a/src/core/ngx_cycle.c +++ b/src/core/ngx_cycle.c @@ -612,13 +612,9 @@ ngx_init_cycle(ngx_cycle_t *old_cycle) 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); } |