mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-03-14 11:31:59 +01:00
BUG/MINOR: mworker: don't set the PROC_O_LEAVING flag on master process
The master process in the proc_list mustn't set the PROC_O_LEAVING flag since the reload doesn't mean the master will leave. Could be backported as far as 3.1.
This commit is contained in:
parent
bd3983b595
commit
1cbd1163f0
@ -232,7 +232,7 @@ int mworker_env_to_proc_list()
|
||||
/* set the leaving processes once we know which number of reloads are the current processes */
|
||||
|
||||
list_for_each_entry(child, &proc_list, list) {
|
||||
if (child->reloads > 0)
|
||||
if (child->reloads > 0 && !(child->options & PROC_O_TYPE_MASTER))
|
||||
child->options |= PROC_O_LEAVING;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user