]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: fd: register the write side of the poller pipe as well
authorWilly Tarreau <w@1wt.eu>
Mon, 24 Jan 2022 19:33:09 +0000 (20:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 24 Jan 2022 19:41:25 +0000 (20:41 +0100)
commit3a6af1e5e80ee531ab0f0fd4d1b5cb4eb7f60bf5
tree938ab339f3b5f9b3070b442e7d91f57c5ef0ddd6
parent5be7c198e5991d5b601af3e648bccfd6f345c673
MINOR: fd: register the write side of the poller pipe as well

The poller's pipe was only registered on the read side since we don't
need to poll to write on it. But this leaves some known FDs so it's
better to also register the write side with no event. This will allow
to show them in "show fd" and to avoid dumping them as unhandled FDs.

Note that the only other type of unhandled FDs left are:
  - stdin/stdout/stderr
  - epoll FDs

The later can be registered upon startup though but at least a dummy
handler would be needed to keep the fdtab clean.
src/fd.c