From: William Lallemand Date: Thu, 5 Mar 2026 15:29:37 +0000 (+0100) Subject: BUG/MINOR: mworker: don't set the PROC_O_LEAVING flag on master process X-Git-Tag: v3.4-dev7~117 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1cbd1163f0da6225a41fd44cac24ce09228cb605;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/mworker.c b/src/mworker.c index 956ffc041..51dcd5314 100644 --- a/src/mworker.c +++ b/src/mworker.c @@ -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; }