am 7297278a: Merge "logd: pidToName deficiency"
* commit '7297278ade9de51e63568188782f56e2ad2bcf6b': logd: pidToName deficiency
This commit is contained in:
commit
672c990ef0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue