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:
William Lallemand 2026-03-05 16:29:37 +01:00
parent bd3983b595
commit 1cbd1163f0

View File

@ -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;
}