Commit ff5c0d63 authored by topjohnwu's avatar topjohnwu

MagiskHide small fix

parent 198b14e5
...@@ -19,7 +19,7 @@ static void terminate(int sig) { ...@@ -19,7 +19,7 @@ static void terminate(int sig) {
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
if (argc > 0) { if (argc > 1) {
if (strcmp(argv[1], "--daemon") == 0) if (strcmp(argv[1], "--daemon") == 0)
run_as_daemon(); run_as_daemon();
else { else {
......
...@@ -7,6 +7,8 @@ void monitor_proc() { ...@@ -7,6 +7,8 @@ void monitor_proc() {
// Get the mount namespace of init // Get the mount namespace of init
read_namespace(1, init_ns, 32); read_namespace(1, init_ns, 32);
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("/data/busybox/ps | grep zygote | grep -v grep", "r");
while(fgets(buffer, sizeof(buffer), p)) { 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