summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-11-20 23:24:58 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-11-20 23:24:58 +0000
commit5ddb82463503a116d67aaf7bf185a7fe9c807cf5 (patch)
treee0350dad1c302af09e54c65dca84b1f6dcc283cb
parent7eab523c03de6d9c62425ef07a6cf3139f7b3b60 (diff)
- Applied kqueue() fix by Adam <adam@anope.org>
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2588 82007160-df01-0410-b94d-b575c5fd34c7
-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;
}
}