From a78472da72d9b3ac765997a9ce1dba7cca436618 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Tue, 13 Jul 2004 07:55:01 +0000 Subject: [PATCH] fix a bug for persistent events when using select() svn:r108 --- select.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/select.c b/select.c index 0a47a6a8..2a1c6f33 100644 --- a/select.c +++ b/select.c @@ -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; -- 2.40.0