diff options
| author | 2020-03-13 20:45:18 -0700 | |
|---|---|---|
| committer | 2020-03-16 17:01:26 -0700 | |
| commit | bb108a18393edde0e767d882dceef70a9fb1839e (patch) | |
| tree | f5cf7b01c8dfacfe6969db6fb7c5870fd2e0e14d /libs/binder/ActivityManager.cpp | |
| parent | a4b4999ec508c5ba90ef4eb1bbdb31c74e169fa8 (diff) | |
ServiceManager: Check guaranteeClient before unregistering services
If tryUnregisterService is called while a service has set guaranteeClient to true, it should not succeed. The flag means that a client exists and is about to be counted. Not checking this flag can lead to a race.
Bug: 151485917
Test: aidl_lazy_test
Change-Id: If7ef7a5c7521ea40521bd351385fb8bd650aba08
Diffstat (limited to 'libs/binder/ActivityManager.cpp')
0 files changed, 0 insertions, 0 deletions