comparison src/os/win32/ngx_process_cycle.c @ 5452:b7bf4671bb7b

Win32: fixed init_process without master process (ticket #453). Init process callbacks are called by ngx_worker_thread(), there is no need to call them in ngx_single_process_cycle().
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 29 Nov 2013 17:23:47 +0400
parents 3d2d3e1cf427
children e45fa57ef725
comparison
equal deleted inserted replaced
5451:e68af4e3396f 5452:b7bf4671bb7b
1020 1020
1021 1021
1022 void 1022 void
1023 ngx_single_process_cycle(ngx_cycle_t *cycle) 1023 ngx_single_process_cycle(ngx_cycle_t *cycle)
1024 { 1024 {
1025 ngx_int_t i;
1026 ngx_tid_t tid; 1025 ngx_tid_t tid;
1027
1028 for (i = 0; ngx_modules[i]; i++) {
1029 if (ngx_modules[i]->init_process) {
1030 if (ngx_modules[i]->init_process(cycle) == NGX_ERROR) {
1031 /* fatal */
1032 exit(2);
1033 }
1034 }
1035 }
1036 1026
1037 ngx_process_init(cycle); 1027 ngx_process_init(cycle);
1038 1028
1039 ngx_console_init(cycle); 1029 ngx_console_init(cycle);
1040 1030