]> git.kaiwu.me - nginx.git/commitdiff
Win32: fixed init_process without master process (ticket #453).
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 29 Nov 2013 13:23:47 +0000 (17:23 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 29 Nov 2013 13:23:47 +0000 (17:23 +0400)
Init process callbacks are called by ngx_worker_thread(), there is no
need to call them in ngx_single_process_cycle().

src/os/win32/ngx_process_cycle.c

index 949ea85dbb2baaab5db503ca3a864287bd90b1c9..b5a1022c773113e432ba586d556fe02170e88b12 100644 (file)
@@ -1022,18 +1022,8 @@ ngx_cache_loader_thread(void *data)
 void
 ngx_single_process_cycle(ngx_cycle_t *cycle)
 {
-    ngx_int_t  i;
     ngx_tid_t  tid;
 
-    for (i = 0; ngx_modules[i]; i++) {
-        if (ngx_modules[i]->init_process) {
-            if (ngx_modules[i]->init_process(cycle) == NGX_ERROR) {
-                /* fatal */
-                exit(2);
-            }
-        }
-    }
-
     ngx_process_init(cycle);
 
     ngx_console_init(cycle);