Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6057ad6b authored by Greg Kaiser's avatar Greg Kaiser
Browse files

dumpstate: Properly handle unfound pid

The function GetPidByName() returns -1 if we can't find the
pid.  But since we had 'pid' as unsigned, this became a huge
positive number for us, and we didn't fail the "pid > 0" check
as expected.

We switch 'pid' to a signed int, so now this logic flows as
expected.

Test: Grab a bugreport on a device without /system/bin/anrd and confirm we no longer get the "Failed to find" error in logcat.
Change-Id: I83bcbbe3f189a705fd0ad83ae600c45196048a3f
parent 95a9e425
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment