From 626e0818764baa5d4b193bdc043202f996f6fb40 Mon Sep 17 00:00:00 2001 From: blankie Date: Tue, 7 Mar 2023 20:55:02 +0700 Subject: [PATCH] Ignore EINTR --- logcat_thread.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/logcat_thread.cpp b/logcat_thread.cpp index ed6466b..9c2ef41 100644 --- a/logcat_thread.cpp +++ b/logcat_thread.cpp @@ -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) {