]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mworker: don't save program PIDs in oldpids
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Thu, 5 Dec 2024 15:00:12 +0000 (16:00 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 6 Dec 2024 11:00:22 +0000 (12:00 +0100)
commit1fead6c0ca8f8ad2f354fb4dfab241ec5281737c
treedad5782f2122d0dccde66653904ae3b1cebc6a32
parentbc453c51066beb8ed05baa6636fcb471b9d103ca
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.
src/mworker.c