Added msleep() on reload to allow new processes to start.
This is expected to ensure smoother operation on reload (and with less
chance of listen queue overflows).
Prodded by Igor Sysoev.
Maxim Dounin
10 years ago
249 | 249 | ngx_start_worker_processes(cycle, ccf->worker_processes, |
250 | 250 | NGX_PROCESS_JUST_RESPAWN); |
251 | 251 | ngx_start_cache_manager_processes(cycle, 1); |
252 | ||
253 | /* allow new processes to start */ | |
254 | ngx_msleep(100); | |
255 | ||
252 | 256 | live = 1; |
253 | 257 | ngx_signal_worker_processes(cycle, |
254 | 258 | ngx_signal_value(NGX_SHUTDOWN_SIGNAL)); |