ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/s_bsd_kqueue.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/s_bsd_kqueue.c (file contents):
Revision 1592 by michael, Sat Oct 27 21:02:32 2012 UTC vs.
Revision 2589 by michael, Wed Nov 20 23:25:12 2013 UTC

# Line 85 | Line 85 | kq_update_events(int fd, int filter, int
85  
86    if (++kqoff == KE_LENGTH)
87    {
88 <    kevent(kqfd.fd, kq_fdlist, kqoff, NULL, 0, &zero_timespec);
88 >    int i;
89 >
90 >    for (i = 0; i < kqoff; ++i)
91 >      kevent(kqfd.fd, kq_fdlist[i], 1, NULL, 0, &zero_timespec);
92      kqoff = 0;
93    }
94   }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)