Commit ff5c0d63 authored by topjohnwu's avatar topjohnwu

MagiskHide small fix

parent 198b14e5
......@@ -19,7 +19,7 @@ static void terminate(int sig) {
int main(int argc, char *argv[]) {
if (argc > 0) {
if (argc > 1) {
if (strcmp(argv[1], "--daemon") == 0)
run_as_daemon();
else {
......
......@@ -7,6 +7,8 @@ void monitor_proc() {
// Get the mount namespace of init
read_namespace(1, init_ns, 32);
printf("%s\n", init_ns);
// Get the mount namespace of zygote
FILE *p = popen("/data/busybox/ps | grep zygote | grep -v grep", "r");
while(fgets(buffer, sizeof(buffer), p)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment