aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32/ngx_process_cycle.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2013-11-29 17:23:47 +0400
committerMaxim Dounin <mdounin@mdounin.ru>2013-11-29 17:23:47 +0400
commitbfda85b6e48a8936b288e5f95834b00fb2bc510c (patch)
treef87f5e5308aa795208767a0c93a9580f249a4776 /src/os/win32/ngx_process_cycle.c
parent3dec2b131cd1787d0022fa6b7d8e7c8997c0a862 (diff)
downloadnginx-bfda85b6e48a8936b288e5f95834b00fb2bc510c.tar.gz
nginx-bfda85b6e48a8936b288e5f95834b00fb2bc510c.zip
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().
Diffstat (limited to 'src/os/win32/ngx_process_cycle.c')
-rw-r--r--src/os/win32/ngx_process_cycle.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/os/win32/ngx_process_cycle.c b/src/os/win32/ngx_process_cycle.c
index 949ea85db..b5a1022c7 100644
--- a/src/os/win32/ngx_process_cycle.c
+++ b/src/os/win32/ngx_process_cycle.c
@@ -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);