debuggerd: Fix return type in error case

With our method returning 'bool', a "return -1" is interpretted
as 'true'.  We change this to an explicit 'false', as desired.

Test: TreeHugger
Change-Id: I222858b797bc4242a2dc6d4fe81df3d2586d055a
This commit is contained in:
Greg Kaiser 2019-01-08 06:29:22 -08:00
parent 6cc741ec9a
commit 3fa9a59ea3

View file

@ -72,7 +72,7 @@ bool debuggerd_trigger_dump(pid_t tid, DebuggerdDumpType dump_type, unsigned int
std::string error;
if (!android::procinfo::GetProcessInfo(tid, &procinfo, &error)) {
LOG(ERROR) << "libdebugged_client: failed to get process info: " << error;
return -1;
return false;
}
pid = procinfo.pid;
}