mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-03 01:49:24 +00:00
BUG/MINOR: mworker: doesn't launch the program postparser
When in wait mode, the mworker-prog postparser is launched, but unfortunately the child structure doesn't contain all required information to be able to launch the test. This test is only required when doing a configuration parsing. Must be backported as far as 2.0.
This commit is contained in:
parent
90034bba15
commit
5f47b2e280
@ -328,6 +328,11 @@ int cfg_program_postparser()
|
|||||||
int err_code = 0;
|
int err_code = 0;
|
||||||
struct mworker_proc *child;
|
struct mworker_proc *child;
|
||||||
|
|
||||||
|
/* we only need to check this during configuration parsing,
|
||||||
|
* wait mode doesn't have the complete description of a program */
|
||||||
|
if (global.mode & MODE_MWORKER_WAIT)
|
||||||
|
return err_code;
|
||||||
|
|
||||||
list_for_each_entry(child, &proc_list, list) {
|
list_for_each_entry(child, &proc_list, list) {
|
||||||
if (child->reloads == 0 && (child->options & PROC_O_TYPE_PROG)) {
|
if (child->reloads == 0 && (child->options & PROC_O_TYPE_PROG)) {
|
||||||
if (child->command == NULL) {
|
if (child->command == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user