diff options
| author | 2023-11-21 08:22:16 +0000 | |
|---|---|---|
| committer | 2023-11-21 08:22:16 +0000 | |
| commit | 924535754ef51df95fa02b1fed91d98e36030554 (patch) | |
| tree | c9a83a1a09f7b4c046a3e0c8d5239b9905c024da /libs/androidfw/StringPool.cpp | |
| parent | 67890dbee5f9d2cab296fd2037fc69034b6a5d50 (diff) | |
Be more robust against premature process crash.
In case a process crashes right after calling `attachApplication`, it is
possible that binder wasn't able to get the PID of the process while
delivering the transaction, resulting in a PID of 0. libprocessgroup's
killProcessGroup() requires a positive PID, so only call when we got a
valid PID.
Bug: 297833427
Test: N/A
Change-Id: I7f815bcccfac05cd84f53a1dd9d5b457275b7558
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions