Fix epoll
This commit is contained in:
@@ -33,7 +33,12 @@ int reader(int fd) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifndef __GLIBC__
|
||||
int nfds_n1 = epoll_wait(epollfd, events, -1, -1);
|
||||
#else
|
||||
// glibc does not support events len -1
|
||||
int nfds_n1 = epoll_wait(epollfd, events, 8, -1);
|
||||
#endif
|
||||
if (nfds_n1 != -1 || errno != EINVAL) {
|
||||
perror("epoll_wait");
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user