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 |
|
|
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 |
|
|
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 |
|
} |