Mercurial > hg > nginx
changeset 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 | e68af4e3396f |
children | b7b8e2fa7ebd |
files | src/os/win32/ngx_process_cycle.c |
diffstat | 1 files changed, 0 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os/win32/ngx_process_cycle.c Fri Nov 29 17:23:38 2013 +0400 +++ b/src/os/win32/ngx_process_cycle.c Fri Nov 29 17:23:47 2013 +0400 @@ -1022,18 +1022,8 @@ 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);