Ignore EINTR
This commit is contained in:
parent
4db64d4da6
commit
626e081876
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue