diff options
author | Mark Salyzyn <salyzyn@google.com> | 2015-04-20 10:27:38 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2015-05-12 13:06:25 -0700 |
commit | 4fba28671b7213010dbfe6ad88e9891cc4080c75 (patch) | |
tree | 6389056b01af6f6c30e09b0709f4ea13583b960e /logd | |
parent | 9bdc0647200bfcd64962a5d2bde39f01f2fd0457 (diff) | |
download | system_core-4fba28671b7213010dbfe6ad88e9891cc4080c75.zip system_core-4fba28671b7213010dbfe6ad88e9891cc4080c75.tar.gz system_core-4fba28671b7213010dbfe6ad88e9891cc4080c75.tar.bz2 |
logd: pidToName deficiency
(Cherry pick from commit aa43ae2268076227e8b72ea095f8aeac439b3168)
any logging in zygote permanently sets the pidToName
Change-Id: I0b8fdc96fb5965a04d4dc4293c39815beef5eb8e
Diffstat (limited to 'logd')
-rw-r--r-- | logd/LogStatistics.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/logd/LogStatistics.h b/logd/LogStatistics.h index a935c27..ca4b9a6 100644 --- a/logd/LogStatistics.h +++ b/logd/LogStatistics.h @@ -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) { |