mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-14 22:52:19 -04:00
BUG/MINOR: mworker: fix typo &= instead of & in proc list serialization
In mworker_proc_list_to_env(), a typo used '&=' instead of '&' when checking PROC_O_TYPE_WORKER in child->options. This would corrupt the options field by clearing all bits except PROC_O_TYPE_WORKER, but since the function is called right before the master re-execs itself during a reload, the corruption has no actual effect: the in-memory proc_list is discarded by the exec, and the options field is not serialized to the environment anyway. This should be backported to all maintained versions.
This commit is contained in:
parent
a390daaee4
commit
cb51c8729d
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ void mworker_proc_list_to_env()
|
|||
|
||||
if (child->options & PROC_O_TYPE_MASTER)
|
||||
type = 'm';
|
||||
else if (child->options &= PROC_O_TYPE_WORKER)
|
||||
else if (child->options & PROC_O_TYPE_WORKER)
|
||||
type = 'w';
|
||||
|
||||
if (child->pid > -1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue