]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mworker: detach from tty when received READY from worker
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Mon, 9 Dec 2024 19:20:40 +0000 (20:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Dec 2024 20:32:54 +0000 (21:32 +0100)
commit1f63a539550b3b29a3b335c93e419e9ea683f763
tree7ab451a0245aa30b48ac9c8e733ee5d8a12fba16
parent97aaf7671654ceba16727f8375104064538c40e6
BUG/MINOR: mworker: detach from tty when received READY from worker

Some master process' initialization steps are conditioned by receiving the
READY message from worker (pidfile creation, forwarding READY message to the
launching parent). So, master process can not do these initialization routines
before.

If the master process fails, while creating pid or forwarding the READY to the
parent in daemon mode, he exits with a proper alert message. In daemon mode we
no longer see such message, as process is already detached from the tty.

To fix this, as these alerts could be very useful, let's detach the master
process from the tty after his last initialization steps in _send_status.
include/haproxy/global.h
src/cli.c
src/haproxy.c