diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2013-11-29 17:23:47 +0400 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2013-11-29 17:23:47 +0400 |
commit | bfda85b6e48a8936b288e5f95834b00fb2bc510c (patch) | |
tree | f87f5e5308aa795208767a0c93a9580f249a4776 /src/os | |
parent | 3dec2b131cd1787d0022fa6b7d8e7c8997c0a862 (diff) | |
download | nginx-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')
-rw-r--r-- | src/os/win32/ngx_process_cycle.c | 10 |
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); |