From 1cbd1163f0da6225a41fd44cac24ce09228cb605 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Thu, 5 Mar 2026 16:29:37 +0100 Subject: [PATCH] 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. --- src/mworker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }