]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: checks: use my_closefrom() to close all FDs
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Feb 2019 21:22:06 +0000 (22:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 Feb 2019 21:22:06 +0000 (22:22 +0100)
commit2555ccf4d08e5cab6756690753eb08ac0761facd
tree57d0ec0e0a06d677c5598ce47f7d8cfa9d9c1fff
parent2d7f81b809ec469b82ac724c31e5c1cc4f444b9b
MINOR: checks: use my_closefrom() to close all FDs

Instead of looping on all FDs, let's use my_closefrom() which does it
respecting the current process' limits and possibly doing it more
efficiently.
src/checks.c