fix a bug for persistent events when using select()

svn:r108
This commit is contained in:
Niels Provos 2004-07-13 07:55:01 +00:00
parent de5fc61928
commit a78472da72

View File

@ -201,6 +201,8 @@ select_dispatch(void *arg, struct timeval *tv)
if (res) {
if (!(ev->ev_events & EV_PERSIST))
event_del(ev);
else if (ev->ev_fd > maxfd)
maxfd = ev->ev_fd;
event_active(ev, res, 1);
} else if (ev->ev_fd > maxfd)
maxfd = ev->ev_fd;