104 |
|
|
105 |
if ((fd = epoll_create(hard_fdlimit)) < 0) |
if ((fd = epoll_create(hard_fdlimit)) < 0) |
106 |
{ |
{ |
107 |
ilog(L_CRIT, "init_netio: Couldn't open epoll fd - %d: %s", |
ilog(LOG_TYPE_IRCD, "init_netio: Couldn't open epoll fd - %d: %s", |
108 |
errno, strerror(errno)); |
errno, strerror(errno)); |
109 |
exit(115); /* Whee! */ |
exit(115); /* Whee! */ |
110 |
} |
} |
157 |
|
|
158 |
if (epoll_ctl(efd.fd, op, F->fd, &ep_event) != 0) |
if (epoll_ctl(efd.fd, op, F->fd, &ep_event) != 0) |
159 |
{ |
{ |
160 |
ilog(L_CRIT, "comm_setselect: epoll_ctl() failed: %s", strerror(errno)); |
ilog(LOG_TYPE_IRCD, "comm_setselect: epoll_ctl() failed: %s", strerror(errno)); |
161 |
abort(); |
abort(); |
162 |
} |
} |
163 |
} |
} |