Fix epoll

This commit is contained in:
Wildan M
2026-03-25 04:19:44 +07:00
parent 46379d7001
commit 00bcc90f98
+5
View File
@@ -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;