]> 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 16:19:22 +0000 (18:19 +0200)
commit53bbca0f14d536e1afe8231d1cd4f6ac84752c77
tree2b99cc07d569f024490ca4149b690d88495e678b
parentf86b17c2a2969cfca5431dd7aa4d80f0757ebb74
[BUG] O(1) pollers should check their FD before closing it

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.

(cherry-picked from commit d79e79b436144654d10124de7d5fd4c896ac0487)
(cherry picked from commit 0d27ec2050a3208150af5dcaeda9dab7a53fdaf7)
src/ev_epoll.c
src/ev_kqueue.c
src/ev_sepoll.c