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) {