Tweaks to icky icky select() engine (thanks Ersan) this MIGHT fix select problems, but nobody really uses it anyway.

We've been having more than usual problems due to select() due to epoll not being detected properly and it falling back on select() which isnt as well tested.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8113 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2007-10-03 15:40:23 +00:00
parent 71a2531a9e
commit c7c9f1119e

View File

@ -36,11 +36,10 @@ bool SelectEngine::AddFd(EventHandler* eh)
if (GetRemainingFds() <= 1)
return false;
fds[fd] = fd;
if (ref[fd])
return false;
fds[fd] = fd;
ref[fd] = eh;
CurrentSetSize++;