mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
fix segfault
This commit is contained in:
parent
95ead46111
commit
17e0e1a554
@ -584,7 +584,7 @@ ngx_event_process_init(ngx_cycle_t *cycle)
|
|||||||
ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);
|
ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);
|
||||||
ecf = ngx_event_get_conf(cycle->conf_ctx, ngx_event_core_module);
|
ecf = ngx_event_get_conf(cycle->conf_ctx, ngx_event_core_module);
|
||||||
|
|
||||||
if (ccf->worker_processes > 1 && ecf->accept_mutex) {
|
if (ccf->master && ccf->worker_processes > 1 && ecf->accept_mutex) {
|
||||||
ngx_use_accept_mutex = 1;
|
ngx_use_accept_mutex = 1;
|
||||||
ngx_accept_mutex_held = 0;
|
ngx_accept_mutex_held = 0;
|
||||||
ngx_accept_mutex_delay = ecf->accept_mutex_delay;
|
ngx_accept_mutex_delay = ecf->accept_mutex_delay;
|
||||||
|
Loading…
Reference in New Issue
Block a user