Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20432c23 authored by Jeff Brown's avatar Jeff Brown Committed by Android (Google) Code Review
Browse files

Merge "Work around spurious epoll notifications." into mnc-dev

parents 0a423d99 18a574f7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -567,7 +567,12 @@ int Looper::removeFd(int fd, int seq) {
#endif
                scheduleEpollRebuildLocked();
            } else {
                // Some other error occurred.  This is really weird because it means
                // our list of callbacks got out of sync with the epoll set somehow.
                // We defensively rebuild the epoll set to avoid getting spurious
                // notifications with nowhere to go.
                ALOGE("Error removing epoll events for fd %d, errno=%d", fd, errno);
                scheduleEpollRebuildLocked();
                return -1;
            }
        }