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

Commit 4cbe95d3 authored by Henri Chataing's avatar Henri Chataing
Browse files

system/gd: Log error for epoll_wait failure

Bug: 328847087
Bug: 328846914
Test: m com.android.btservices
Flag: EXEMPT, log change
Change-Id: I30d3ca74a8692604d6617e9835a252741f348b4e
parent cf92365a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -138,7 +138,8 @@ void Reactor::Run() {
    epoll_event events[kEpollMaxEvents];
    int count;
    RUN_NO_INTR(count = epoll_wait(epoll_fd_, events, kEpollMaxEvents, timeout_ms));
    ASSERT(count != -1);
    ASSERT_LOG(count != -1, "epoll_wait failed: fd=%d, err=%s",
               epoll_fd_, strerror(errno));
    if (waiting_for_idle && count == 0) {
      timeout_ms = -1;
      waiting_for_idle = false;