]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: init: 'devnullfd' not properly closed for master
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 12 Nov 2025 14:58:33 +0000 (15:58 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 12 Nov 2025 15:06:28 +0000 (16:06 +0100)
commit1b19e4ef32301e1f469ebc82e9f88938ec8b6d95
tree95b8b410ab245b987dc5ebbe5a27266bdb059842
parent7927ee95f3a21455e02f416433280423381d5b22
BUG/MEDIUM: init: 'devnullfd' not properly closed for master

Since commit "1ec59d3 MINOR: init: Make devnullfd global and create it
earlier in init" the devnullfd pointing towards /dev/null gets created
early in the init process but it was closed after the call to
"mworker_run_master". The master process never got to the FD closing
code and we had an FD leak.

This patch does not need to be backported.
src/mworker.c