diff options
Diffstat (limited to 'logd/LogStatistics.h')
-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) { |