fixed GH #1458: always pass 1 to epoll_create()

This commit is contained in:
Guenter Obiltschnig 2016-10-17 17:59:09 +02:00
parent 2757bce0c3
commit 69d632810e

View File

@ -147,7 +147,7 @@ int Socket::select(SocketList& readList, SocketList& writeList, SocketList& exce
}
epollSize = eventLast - eventsIn;
epollfd = epoll_create(epollSize);
epollfd = epoll_create(1);
if (epollfd < 0)
{
SocketImpl::error("Can't create epoll queue");