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

Commit 65381d82 authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder: harder failure on poll failure

Fail hard, fail fast (until proven otherwise)

Bug: 185167543
Test: binderRpcTest, binder_rpc_fuzzer
Change-Id: I6a5dcbb19d79d42c528a61e95718caa02512a12c
parent 9e8b6427
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ bool RpcSession::FdTrigger::triggerablePollRead(base::borrowed_fd fd) {
        int ret = TEMP_FAILURE_RETRY(poll(pfd, arraysize(pfd), -1));
        if (ret < 0) {
            ALOGE("Could not poll: %s", strerror(errno));
            continue;
            return false;
        }
        if (ret == 0) {
            continue;