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

Commit 357c2ed3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Make invalid FD a fatal error in FdTrigger" into main

parents 5dd9afa2 ddaccb76
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -108,7 +108,7 @@ status_t FdTrigger::triggerablePoll(const android::RpcTransportFd& transportFd,


    // POLLNVAL: invalid FD number, e.g. not opened.
    // POLLNVAL: invalid FD number, e.g. not opened.
    if (pfd[0].revents & POLLNVAL) {
    if (pfd[0].revents & POLLNVAL) {
        ALOGE("Invalid FD number (%d) in FdTrigger (POLLNVAL)", pfd[0].fd);
        LOG_ALWAYS_FATAL("Invalid FD number (%d) in FdTrigger (POLLNVAL)", pfd[0].fd);
        return BAD_VALUE;
        return BAD_VALUE;
    }
    }