Merge branch 'datum_eintr' into 0.2.x
Some checks failed
Build DATUM Gateway / build (ubuntu-22.04) (push) Has been cancelled
Build DATUM Gateway / build (ubuntu-latest) (push) Has been cancelled

This commit is contained in:
Luke Dashjr 2025-04-16 21:13:17 +00:00
commit fa560e3ede
No known key found for this signature in database
GPG Key ID: A291A2C45D0C504A

View File

@ -1676,12 +1676,12 @@ void *datum_protocol_client(void *args) {
nfds = epoll_wait(epollfd, events, MAX_DATUM_CLIENT_EVENTS, 5); // Wait for 5ms nfds = epoll_wait(epollfd, events, MAX_DATUM_CLIENT_EVENTS, 5); // Wait for 5ms
if (nfds == -1) { if (nfds == -1 && errno != EINTR) {
DLOG_FATAL("epoll_wait(...) error: %s",strerror(errno)); DLOG_FATAL("epoll_wait(...) error: %s",strerror(errno));
break; break;
} }
if (nfds == 0) { if (nfds <= 0) {
continue; // Timeout, nothing happened continue; // Timeout, nothing happened
} }