BUG/MEDIUM: mworker: don't fill the -sf argument with -1 during the reexec
authorWilliam Lallemand <wlallemand@haproxy.org>
Tue, 19 Nov 2019 16:04:18 +0000 (17:04 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 19 Nov 2019 16:30:34 +0000 (17:30 +0100)
commit677e2f2c35444f4eda93c363946ba473ddc16a88
treed9abc9234e8a677cb142f0aeb773cf14581f24c9
parent0bc9c8a2431ab866d8f91fa39e904fe7a204b9be
BUG/MEDIUM: mworker: don't fill the -sf argument with -1 during the reexec

Upon a reexec_on_failure, if the process tried to exit after the
initialization of the process structure but before it was filled with a
PID, the PID in the mworker_proc structure is set to -1.

In this particular case the -sf argument is filled with -1 and haproxy
will exit with the usage message because of that argument.

Should be backported in 2.0.
src/haproxy.c