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 31 by knight, Sun Oct 2 20:34:05 2005 UTC vs.
ircd-hybrid-8/src/s_bsd_kqueue.c (file contents), Revision 1247 by michael, Sat Oct 1 07:54:24 2011 UTC

# Line 24 | Line 24
24   */
25  
26   #include "stdinc.h"
27 + #if USE_IOPOLL_MECHANISM == __IOPOLL_MECHANISM_KQUEUE
28   #include <sys/event.h>
29   #include "fdlist.h"
30   #include "ircd.h"
# Line 64 | 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 82 | Line 83 | kq_update_events(int fd, int filter, int
83  
84    EV_SET(kep, (uintptr_t) fd, (short) filter, what, 0, 0, NULL);
85  
86 <  if (kqoff == KE_LENGTH)
86 >  if (++kqoff == KE_LENGTH)
87    {
88      kevent(kqfd.fd, kq_fdlist, kqoff, NULL, 0, &zero_timespec);
89      kqoff = 0;
90    }
90  else
91    kqoff++;
91   }
92  
93   /*
# Line 197 | Line 196 | comm_select(void)
196      comm_setselect(F, 0, NULL, NULL, 0);
197    }
198   }
199 + #endif

Comparing:
ircd-hybrid/src/s_bsd_kqueue.c (property svn:keywords), Revision 31 by knight, Sun Oct 2 20:34:05 2005 UTC vs.
ircd-hybrid-8/src/s_bsd_kqueue.c (property svn:keywords), Revision 1247 by michael, Sat Oct 1 07:54:24 2011 UTC

# Line 1 | Line 1
1 < "Id Revision"
1 > Id Revision

Diff Legend

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