Add support for some newer versions of glibc which provide the epoll_create1
function but always fail with ENOSYS.
This commit is contained in:
parent
dffb3d299a
commit
3e01781654
@ -465,7 +465,7 @@ int epoll_reactor::do_epoll_create()
|
||||
errno = EINVAL;
|
||||
#endif // defined(EPOLL_CLOEXEC)
|
||||
|
||||
if (fd == -1 && errno == EINVAL)
|
||||
if (fd == -1 && (errno == EINVAL || errno == ENOSYS))
|
||||
{
|
||||
fd = epoll_create(epoll_size);
|
||||
if (fd != -1)
|
||||
|
Loading…
Reference in New Issue
Block a user