Busybox path changed; stock one is enough for detection
This commit is contained in:
parent
45dbd4464b
commit
14204c9bfc
@ -10,7 +10,7 @@ void monitor_proc() {
|
|||||||
printf("%s\n", init_ns);
|
printf("%s\n", init_ns);
|
||||||
|
|
||||||
// Get the mount namespace of zygote
|
// Get the mount namespace of zygote
|
||||||
FILE *p = popen("/data/busybox/ps | grep zygote | grep -v grep", "r");
|
FILE *p = popen("ps | grep zygote | grep -v grep", "r");
|
||||||
while(fgets(buffer, sizeof(buffer), p)) {
|
while(fgets(buffer, sizeof(buffer), p)) {
|
||||||
if (zygote_num == 2) break;
|
if (zygote_num == 2) break;
|
||||||
sscanf(buffer, "%d", &pid);
|
sscanf(buffer, "%d", &pid);
|
||||||
|
Loading…
Reference in New Issue
Block a user