diff options
| author | 2021-09-13 18:51:16 -0700 | |
|---|---|---|
| committer | 2021-09-13 22:17:24 -0700 | |
| commit | 675193250481cd2f98c926f32fc9e76127696a50 (patch) | |
| tree | 1a8e8642f46fad975f3e6e95fd7dee82961ca416 /libs/gui/BufferQueueThreadState.cpp | |
| parent | e07d273c707b385feb5533f1030530426848b2d4 (diff) | |
binder: TLS checks trigger properly.
Previously, libbinder_tls ignores the result of
isTriggeredPolled() by always returning OK regardless
of whether the shutdown trigger is triggered or not, causing
program to continue when it shouldn't be. Return the status
properly like FdTrigger::triggerablePoll:
- If any error during poll() return the code
- If shutdown, return -ECANCELED (new in this CL for TLS)
- Otherwise return OK
Refactor RpcTransportTest so that we can add a new test
to check that trigerablePoll() returns -ECANCELED in the
above case.
Test: binderRpcTest
Fixes: 199309623
Change-Id: Ia545ba71cc10be5c46f722a5d3e699f89e1bc70c
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions