mirror of
https://github.com/OCEAN-xyz/datum_gateway.git
synced 2025-05-12 19:20:42 +02:00
Merge branch 'datum_eintr' into 0.2.x
This commit is contained in:
commit
fa560e3ede
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user