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

This commit is contained in:
Jeff Brown 2015-05-30 00:43:10 +00:00 committed by Android (Google) Code Review
commit 20432c237c

View file

@ -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;
}
}