mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
BUG/MINOR: mworker: don't save program PIDs in oldpids
After reload, previously launched programs are stopped explicitly in mworker_ext_launch_all(). So, there is no longer need to save their PIDs in oldpids array before the master reexec(). This also prepares the fix of "-D -W -sf/-st" modes, as we will need to loop over this array in the master process context, in order to stop the previous master, when the new one is ready. This patch should be backported only in 3.1.
This commit is contained in:
parent
bc453c5106
commit
1fead6c0ca
@ -388,7 +388,7 @@ static void mworker_reexec(int hardreload)
|
||||
if (!(child->options & PROC_O_LEAVING) && (child->options & PROC_O_TYPE_WORKER))
|
||||
current_child = child;
|
||||
|
||||
if (!(child->options & (PROC_O_TYPE_WORKER|PROC_O_TYPE_PROG)) || child->pid <= -1)
|
||||
if (!(child->options & (PROC_O_TYPE_WORKER)) || child->pid <= -1)
|
||||
continue;
|
||||
if ((next_argv[next_argc++] = memprintf(&msg, "%d", child->pid)) == NULL)
|
||||
goto alloc_error;
|
||||
|
Loading…
Reference in New Issue
Block a user