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/src/s_bsd_kqueue.c (file contents), Revision 1155 by michael, Tue Aug 9 20:27:45 2011 UTC vs.
ircd-hybrid/trunk/src/s_bsd_kqueue.c (file contents), Revision 2589 by michael, Wed Nov 20 23:25:12 2013 UTC

# Line 30 | Line 30
30   #include "ircd.h"
31   #include "memory.h"
32   #include "s_bsd.h"
33 < #include "s_log.h"
33 > #include "log.h"
34  
35   #define KE_LENGTH 128
36  
# Line 65 | Line 65 | init_netio(void)
65  
66    if ((fd = kqueue()) < 0)
67    {
68 <    ilog(L_CRIT, "init_netio: Couldn't open kqueue fd!");
68 >    ilog(LOG_TYPE_IRCD, "init_netio: Couldn't open kqueue fd!");
69      exit(115); /* Whee! */
70    }
71  
# 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)