comparison src/os/win32/ngx_process_cycle.c @ 282:30310107dbc9

nginx-0.0.2-2004-03-09-22:47:07 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 09 Mar 2004 19:47:07 +0000
parents 0ba4821f4460
children 87e73f067470
comparison
equal deleted inserted replaced
281:014292b55158 282:30310107dbc9
23 #endif 23 #endif
24 24
25 25
26 void ngx_master_process_cycle(ngx_cycle_t *cycle, ngx_master_ctx_t *ctx) 26 void ngx_master_process_cycle(ngx_cycle_t *cycle, ngx_master_ctx_t *ctx)
27 { 27 {
28 ngx_int_t i;
29
30 ngx_init_temp_number();
31
32 for (i = 0; ngx_modules[i]; i++) {
33 if (ngx_modules[i]->init_process) {
34 if (ngx_modules[i]->init_process(cycle) == NGX_ERROR) {
35 /* fatal */
36 exit(2);
37 }
38 }
39 }
40
41 for ( ;; ) {
42 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, cycle->log, 0, "worker cycle");
43
44 ngx_process_events(cycle->log);
45 }
28 } 46 }