mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 11:31:24 +00:00
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.
This commit is contained in:
parent
f4473147e5
commit
927643e3e9
1 changed files with 2 additions and 0 deletions
|
|
@ -371,6 +371,8 @@ ngx_start_worker_processes(ngx_cycle_t *cycle, ngx_int_t n, ngx_int_t type)
|
|||
|
||||
ngx_pass_open_channel(cycle, &ch);
|
||||
}
|
||||
|
||||
cpu_affinity = 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue