]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: init: Do not close previously created fd in stdio_quiet
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Tue, 28 Oct 2025 17:00:42 +0000 (18:00 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 29 Oct 2025 09:54:17 +0000 (10:54 +0100)
commitc606ff45a0cab8f08a0b06df17737ec309cf4170
treedf8bc76aef2671dd337d0d9108301062b36d0a58
parentad9a24ee551bc654377630da744cbb451f433012
BUG/MINOR: init: Do not close previously created fd in stdio_quiet

During init we were calling 'stdio_quiet' and passing the previously
created 'devnullfd' file descriptor. But the 'stdio_quiet' was also
closed afterwards which raised an error (EBADF).
If we keep from closing FDs that were opened outside of the
'stdio_quiet' function we will let the caller manage its FD and avoid
double close calls.

This patch can be backported to all stable branches.
src/haproxy.c