Monitor app_process

Some stupid Samsung ROMs will spawn multiple zygote daemons. Since we
switched to ptrace based process monitoring, we have to know all zygote
processes to trace. This is an attempt to fix this issue.

Close #1272
This commit is contained in:
topjohnwu
2019-04-22 16:36:23 -04:00
parent 6050c4e8ba
commit 515f346dcc
3 changed files with 49 additions and 33 deletions

View File

@ -71,7 +71,7 @@ void crawl_procfs(DIR *dir, const function<bool (int)> &fn) {
}
}
bool proc_name_match(int pid, const char *name) {
static bool proc_name_match(int pid, const char *name) {
char buf[4019];
FILE *f;
#if 0