summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/s_bsd_kqueue.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/s_bsd_kqueue.c b/src/s_bsd_kqueue.c
index 6571878..aa8a345 100644
--- a/src/s_bsd_kqueue.c
+++ b/src/s_bsd_kqueue.c
@@ -85,7 +85,10 @@ kq_update_events(int fd, int filter, int what)
if (++kqoff == KE_LENGTH)
{
- kevent(kqfd.fd, kq_fdlist, kqoff, NULL, 0, &zero_timespec);
+ int i;
+
+ for (i = 0; i < kqoff; ++i)
+ kevent(kqfd.fd, kq_fdlist[i], 1, NULL, 0, &zero_timespec);
kqoff = 0;
}
}