summaryrefslogtreecommitdiff
path: root/libs/binder/RpcSession.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2021-05-22 01:37:10 +0000
committer Steven Moreland <smoreland@google.com> 2021-05-22 01:37:10 +0000
commit65381d826447502d150f2b92c08376951fe3584c (patch)
tree46d89f64e158bf2c9a3d22b394c52158d37136e2 /libs/binder/RpcSession.cpp
parent9e8b642768128fcdb84f64591334aff4ba301070 (diff)
libbinder: harder failure on poll failure
Fail hard, fail fast (until proven otherwise) Bug: 185167543 Test: binderRpcTest, binder_rpc_fuzzer Change-Id: I6a5dcbb19d79d42c528a61e95718caa02512a12c
Diffstat (limited to 'libs/binder/RpcSession.cpp')
-rw-r--r--libs/binder/RpcSession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/RpcSession.cpp b/libs/binder/RpcSession.cpp
index 6a539d10e9..cba560c447 100644
--- a/libs/binder/RpcSession.cpp
+++ b/libs/binder/RpcSession.cpp
@@ -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;