mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-05 06:42:33 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue