]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mworker-prog: stop old programs in mworker_ext_launch_all
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Thu, 10 Oct 2024 21:50:39 +0000 (23:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:02:39 +0000 (22:02 +0200)
commit9e23cfa5c29d880f9cdbef0d795565cb44726935
tree8cb0f7e648a2ded2e8a2dea914c4a1b13891bfa9
parent0fc2ff4b7db76d0f8364876ce078f0960309ec69
MINOR: mworker-prog: stop old programs in mworker_ext_launch_all

This patch is a part of series to reintroduce the program support in the new
master-worker architecture.

Now, after refactoring in master-worker mode it's the master process, who
stops workers forked before the reload. Current worker no longer sends USR1 or
TERM signals to the previous one after ports binding. This behaviour is kept
only for the standalone mode.

So, in case of programs, it's up to master process as well to stop programs,
which were launched before reload. Let's do this in mworker_ext_launch_all(),
just before starting the new programs.
src/mworker-prog.c