mirror of
https://github.com/nginx/nginx.git
synced 2025-06-08 02:02:38 +08:00
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().
This commit is contained in:
parent
3dec2b131c
commit
bfda85b6e4
@ -1022,18 +1022,8 @@ ngx_cache_loader_thread(void *data)
|
|||||||
void
|
void
|
||||||
ngx_single_process_cycle(ngx_cycle_t *cycle)
|
ngx_single_process_cycle(ngx_cycle_t *cycle)
|
||||||
{
|
{
|
||||||
ngx_int_t i;
|
|
||||||
ngx_tid_t tid;
|
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_process_init(cycle);
|
||||||
|
|
||||||
ngx_console_init(cycle);
|
ngx_console_init(cycle);
|
||||||
|
Loading…
Reference in New Issue
Block a user