am 7297278a: Merge "logd: pidToName deficiency"

* commit '7297278ade9de51e63568188782f56e2ad2bcf6b':
  logd: pidToName deficiency
This commit is contained in:
Mark Salyzyn 2015-05-12 19:48:09 +00:00 committed by Android Git Automerger
commit 672c990ef0
1 changed files with 4 additions and 0 deletions

View File

@ -186,6 +186,10 @@ struct PidEntry : public EntryBaseDropped {
const char*getName() const { return name; }
inline void add(pid_t p) {
if (name && !strncmp(name, "zygote", 6)) {
free(name);
name = NULL;
}
if (!name) {
char *n = android::pidToName(p);
if (n) {