Commit 9b5a527f5bf898250a797dde59cadb4f64e8967a

Maxime Henrion 2013-05-16T16:38:39

If evsel->del() fails, don't leave the evmap in an inconsistent state. This fixes assertion failures in cases where epoll() fails with EBADF -- the root cause for which is as of yet unknown. It seems something (OpenSSL?) is closing the file descriptor under our feet.