]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] don't call epoll_ctl() on closed sockets
authorWilly Tarreau <w@1wt.eu>
Sat, 28 Mar 2009 18:43:06 +0000 (19:43 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 28 Mar 2009 18:43:06 +0000 (19:43 +0100)
commit1eead503da2617be8338ac2ff8e32a295991d369
treebeeb1bfcc9434282750367aae5239cc0532cc11b
parent3884cbaae6947c6d54e90dc095dfbca3e77da55c
[BUG] don't call epoll_ctl() on closed sockets

Some I/O callbacks are able to close their socket themselves. We
want to check this before calling epoll_ctl(EPOLL_CTL_DEL), otherwise
we get a -1 EBADF. Right now is looks like this could not cause any
trouble but the case is racy enough to fix it.
src/ev_sepoll.c