]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: fd: add a generation number to file descriptors
authorWilly Tarreau <w@1wt.eu>
Thu, 30 Jan 2025 15:25:40 +0000 (16:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 30 Jan 2025 18:45:34 +0000 (19:45 +0100)
commitd155924efe453faa0ea5b5e62e6a3e2bf7ee7358
tree3259ea6e85eaa7b1acbea9f8f9876013ba0e7d86
parent44ac7a7e731537c9388a141b69cff7074afe2376
MINOR: fd: add a generation number to file descriptors

This patch adds a counter of close() on file descriptors in the fdtab.
The goal is to better detect if reported events concern the current or
a previous file descriptor. For now the counter is only added, and is
showed in "show fd" as "gen". We're reusing unused space at the end of
the struct. If it's needed for something more important later, this
patch can be reverted.
include/haproxy/fd-t.h
src/cli.c
src/fd.c