24 |
|
*/ |
25 |
|
|
26 |
|
#include "stdinc.h" |
27 |
+ |
#if USE_IOPOLL_MECHANISM == __IOPOLL_MECHANISM_EPOLL |
28 |
|
#include "fdlist.h" |
29 |
|
#include "ircd.h" |
30 |
|
#include "memory.h" |
104 |
|
|
105 |
|
if ((fd = epoll_create(hard_fdlimit)) < 0) |
106 |
|
{ |
107 |
< |
ilog(L_CRIT, "init_netio: Couldn't open epoll fd - %d: %s", |
107 |
> |
ilog(LOG_TYPE_IRCD, "init_netio: Couldn't open epoll fd - %d: %s", |
108 |
|
errno, strerror(errno)); |
109 |
|
exit(115); /* Whee! */ |
110 |
|
} |
123 |
|
void *client_data, time_t timeout) |
124 |
|
{ |
125 |
|
int new_events, op; |
126 |
< |
struct epoll_event ep_event; |
126 |
> |
struct epoll_event ep_event = { 0, { 0 } }; |
127 |
|
|
128 |
|
if ((type & COMM_SELECT_READ)) |
129 |
|
{ |
157 |
|
|
158 |
|
if (epoll_ctl(efd.fd, op, F->fd, &ep_event) != 0) |
159 |
|
{ |
160 |
< |
ilog(L_CRIT, "comm_setselect: epoll_ctl() failed: %s", strerror(errno)); |
160 |
> |
ilog(LOG_TYPE_IRCD, "comm_setselect: epoll_ctl() failed: %s", strerror(errno)); |
161 |
|
abort(); |
162 |
|
} |
163 |
|
} |
218 |
|
comm_setselect(F, 0, NULL, NULL, 0); |
219 |
|
} |
220 |
|
} |
221 |
+ |
#endif |