]> git.kaiwu.me - haproxy.git/commit
[BUG] O(1) pollers should check their FD before closing it
authorWilly Tarreau <w@1wt.eu>
Sun, 10 May 2009 08:18:54 +0000 (10:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 10 May 2009 15:56:26 +0000 (17:56 +0200)
commit0d27ec2050a3208150af5dcaeda9dab7a53fdaf7
tree89082ba1389d4389f4463f65e2b1fbb47bef4b4e
parent2d03f9e1b56027c8b9465b85e93eeb69622c0838
[BUG] O(1) pollers should check their FD before closing it

[cherry-picked from commit d79e79b436144654d10124de7d5fd4c896ac0487]

epoll, sepoll and kqueue pollers should check that their fd is not
closed before attempting to close it, otherwise we can end up with
multiple closes of fd #0 upon exit, which is harmless but dirty.
src/ev_epoll.c
src/ev_kqueue.c
src/ev_sepoll.c