comparison src/os/unix/ngx_process_cycle.c @ 4864:cb2304585a8b

Added clearing of cpu_affinity after process spawn. This fixes unwanted/incorrect cpu_affinity use on dead worker processes respawn. While this is not ideal, it's expected to be better when previous situation where multiple processes were spawn with identical CPU affinity set. Reported by Charles Chen.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 26 Sep 2012 16:25:12 +0000
parents 626157fe6f17
children 8a9b7b4e9f2d
comparison
equal deleted inserted replaced
4863:25a4a7259560 4864:cb2304585a8b
369 ch.slot = ngx_process_slot; 369 ch.slot = ngx_process_slot;
370 ch.fd = ngx_processes[ngx_process_slot].channel[0]; 370 ch.fd = ngx_processes[ngx_process_slot].channel[0];
371 371
372 ngx_pass_open_channel(cycle, &ch); 372 ngx_pass_open_channel(cycle, &ch);
373 } 373 }
374
375 cpu_affinity = 0;
374 } 376 }
375 377
376 378
377 static void 379 static void
378 ngx_start_cache_manager_processes(ngx_cycle_t *cycle, ngx_uint_t respawn) 380 ngx_start_cache_manager_processes(ngx_cycle_t *cycle, ngx_uint_t respawn)