]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: init: Use devnullfd in stdio_quiet calls instead of recreating a fd everytime
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Tue, 28 Oct 2025 17:00:44 +0000 (18:00 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 29 Oct 2025 09:54:17 +0000 (10:54 +0100)
commita0116836226a313e564210de4856ad663d9442f1
tree95f7ef5a05779cdfbd979f741624ef1c66855b8d
parent1ec59d3426f1bab9924aae940406f9f6faeb9290
MINOR: init: Use devnullfd in stdio_quiet calls instead of recreating a fd everytime

Since commit "65760d MINOR: init: Make devnullfd global and create it
earlier in init" the devnullfd file descriptor pointing to /dev/null
is created regardless of the process's parameters so we can use it in
all 'stdio_quiet' calls instead or recreating an FD.
src/cli.c
src/haproxy.c