Use epoll_create() instead of epoll_create1() for compatibility with

older kernels.
This commit is contained in:
irungentoo 2014-07-22 12:02:24 -04:00
parent 511d197e8c
commit c3818ac91f
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -950,7 +950,7 @@ TCP_Server *new_TCP_server(uint8_t ipv6_enabled, uint16_t num_sockets, const uin
} }
#ifdef TCP_SERVER_USE_EPOLL #ifdef TCP_SERVER_USE_EPOLL
temp->efd = epoll_create1(0); temp->efd = epoll_create(8);
if (temp->efd == -1) { if (temp->efd == -1) {
free(temp); free(temp);