Ignore EINTR

This commit is contained in:
blankie 2023-03-07 20:55:02 +07:00
parent 4db64d4da6
commit 626e081876
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 3 additions and 0 deletions

View File

@ -227,6 +227,9 @@ void LogcatThread::_run_read_round() {
int ready_fds = epoll_wait(this->_epoll_fd, events, EPOLL_MAX_EVENTS, 1000);
if (ready_fds == -1) {
if (errno == EINTR) {
return;
}
try {
throw_system_error("epoll_wait()");
} catch (const std::exception& e) {