Compare commits

..

No commits in common. "fac2cb08f1b80d0bd03586996da99aa42877adcb" and "4db64d4da6a992d87aa1d6448e3e38cb2717f30a" have entirely different histories.

1 changed files with 4 additions and 5 deletions

View File

@ -16,6 +16,8 @@
#include "logcat_thread.h"
#include "logcat_entry.h"
#define EPOLL_MAX_EVENTS 10
static void mark_nonblock(int fd) {
int flags = fcntl(fd, F_GETFL);
if (flags < 0) {
@ -221,13 +223,10 @@ void LogcatThread::_run_read_round() {
};
#ifdef USE_EPOLL
struct epoll_event events[2];
struct epoll_event events[EPOLL_MAX_EVENTS];
int ready_fds = epoll_wait(this->_epoll_fd, events, 2, 1000);
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) {