BUG/MEDIUM: mworker: more verbose error upon loading failure
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 19 Aug 2025 14:53:21 +0000 (16:53 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Aug 2025 06:54:21 +0000 (08:54 +0200)
commitb731fa8c186eecef5bf50ee75a77c7aae620fce4
treef529801fa0393888f7e9cf26d276dee47c133065
parent720582fb7332f1a2846b63ede1dd56ad8394699e
BUG/MEDIUM: mworker: more verbose error upon loading failure

When a worker crashes during its configuration parsing and without
emitting any messages, the master will emit the message "Failed to load
worker!". However that doesn't give us neither the PID of the worker,
nor the status code.

This patch fixes the problem by emitting a more verbose error.

Must be backported as far as 3.1.

(cherry picked from commit 67cb6aab9006f19cd6478040fb8adc2f7c6153d6)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 65a7be02035a3bf9ad6176601da222d17e6676a6)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/mworker.c