comparison 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
comparison
equal deleted inserted replaced
6377:11e019750adc 6378:0f203a2af17c
610 (void) ngx_log_redirect_stderr(cycle); 610 (void) ngx_log_redirect_stderr(cycle);
611 } 611 }
612 612
613 pool->log = cycle->log; 613 pool->log = cycle->log;
614 614
615 for (i = 0; ngx_modules[i]; i++) { 615 if (ngx_init_modules(cycle) != NGX_OK) {
616 if (ngx_modules[i]->init_module) { 616 /* fatal */
617 if (ngx_modules[i]->init_module(cycle) != NGX_OK) { 617 exit(1);
618 /* fatal */
619 exit(1);
620 }
621 }
622 } 618 }
623 619
624 620
625 /* close and delete stuff that lefts from an old cycle */ 621 /* close and delete stuff that lefts from an old cycle */
626 622