commit | 1eead503da2617be8338ac2ff8e32a295991d369 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sat Mar 28 19:43:06 2009 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Sat Mar 28 19:43:06 2009 +0100 |
tree | beeb1bfcc9434282750367aae5239cc0532cc11b | |
parent | 3884cbaae6947c6d54e90dc095dfbca3e77da55c [diff] |
[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.