diff options
| author | 2022-07-21 23:21:14 +0000 | |
|---|---|---|
| committer | 2022-07-21 23:21:14 +0000 | |
| commit | e2c2e033cff9bd409d4361b425aeacce5ad3d0b9 (patch) | |
| tree | c0cfa622fe1ce587d4707541196df00eebc3c1c7 /libs/binder/RpcSession.cpp | |
| parent | da5299f15661aba0231f53679cb30f9db868084f (diff) | |
| parent | 2f45a9b93c6c1705662e1a21598557b82176d37b (diff) | |
Merge "Add linkToDeath support for RPC binder so a client can act on disconnect" am: 82de44ff33 am: 041bf71199 am: 2f45a9b93c
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2153941
Change-Id: I5c0ab47110a315cb924b56d949f173fb469b2375
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'libs/binder/RpcSession.cpp')
| -rw-r--r-- | libs/binder/RpcSession.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/binder/RpcSession.cpp b/libs/binder/RpcSession.cpp index 80f6a37f51..e6dbd79ffb 100644 --- a/libs/binder/RpcSession.cpp +++ b/libs/binder/RpcSession.cpp @@ -223,6 +223,11 @@ bool RpcSession::shutdownAndWait(bool wait) { _l.unlock(); + if (status_t res = state()->sendObituaries(sp<RpcSession>::fromExisting(this)); res != OK) { + ALOGE("Failed to send obituaries as the RpcSession is shutting down: %s", + statusToString(res).c_str()); + } + mRpcBinderState->clear(); return true; |