MINOR: cfgparse: add support for program section
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Wed, 9 Oct 2024 21:11:07 +0000 (23:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:02:39 +0000 (22:02 +0200)
commita2fac5a3a19c5f0edc76f1afd2ac237d864cae2b
treebbc61fd6ee351067bb02b7620949a61762f8353d
parent45a284895ae6fcb6f9d3c8efa713008d7c7ffc56
MINOR: cfgparse: add support for program section

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

Programs are launched by master, thus only the master process needs its
configuration. Therefore, program section parser should be called only in
discovery mode, when master parses its configuration.

Program section has a post section parser. It should be called only in
discovery mode as well.
src/cfgparse.c