Commit 0b5f973b authored by vvb2060's avatar vvb2060 Committed by John Wu

Print message when getting original app_process fails

parent 4159b387
...@@ -45,8 +45,11 @@ int app_process_main(int argc, char *argv[]) { ...@@ -45,8 +45,11 @@ int app_process_main(int argc, char *argv[]) {
} }
close(fds[1]); close(fds[1]);
if (read_int(fds[0]) != 0) if (read_int(fds[0]) != 0) {
fprintf(stderr, "Failed to connect magisk daemon, "
"try umount %s or reboot.\n", argv[0]);
return 1; return 1;
}
int app_proc_fd = recv_fd(fds[0]); int app_proc_fd = recv_fd(fds[0]);
if (app_proc_fd < 0) if (app_proc_fd < 0)
return 1; return 1;
......
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