MEDIUM: init: remove the loop over processes during init
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Jun 2021 05:58:09 +0000 (07:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 15 Jun 2021 14:52:42 +0000 (16:52 +0200)
commitd67ff340a55f01a7dc887b453a31a82614c07a17
tree937fe67beb2913250a56fa74660cf22976eba790
parent9c6a80231f14bec411272a7b8ad4ae79b6364bae
MEDIUM: init: remove the loop over processes during init

There was a loop iterating over all nbproc values during init that
couldn't be immediately removed because the loop's index was used
to distinguish a child from a parent. That's now fixed by replacing
the iterator with an in_parent flag. All bindings that were checking
(1UL << proc) or cpu_map.proc[proc] were adjusted to always use zero
for proc.
src/haproxy.c