commit | 924535754ef51df95fa02b1fed91d98e36030554 | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@google.com> | Tue Nov 21 08:22:16 2023 +0000 |
committer | Martijn Coenen <maco@google.com> | Tue Nov 21 08:22:16 2023 +0000 |
tree | c9a83a1a09f7b4c046a3e0c8d5239b9905c024da | |
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