diff options
author | 2021-09-23 17:23:02 -0700 | |
---|---|---|
committer | 2021-09-24 10:23:51 -0700 | |
commit | e0b37bd1861eb1cec62b0e118a2e64903c6b81a5 (patch) | |
tree | 8e7ec747209e716498cf2a11053407f9b45a7329 /libs/binder/RpcState.cpp | |
parent | f24415a9aa42e334d8d4650eaafbc89788977fab (diff) |
binder: FdTrigger ensure POLLERR / POLLNVAL is checked
... by aborting if incoming events is 0, so that
it returns DEAD_OBJECT when POLLERR / POLLNVAL
is hit on one of the FDs. Otherwise, if
incoming events is 0, trigerrablePoll() may
block forever.
Also abort if poll() with infinite timeout returns 0. This
way we can remove the while loop, making the code clearer.
Also add a test on triggerablePoll.
Test: binderRpcTest
Fixes: 200999583
Change-Id: I2ae6c4ef2ee825e77e20b43e859df192238be724
Diffstat (limited to 'libs/binder/RpcState.cpp')
0 files changed, 0 insertions, 0 deletions