mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 08:17:40 +00:00
Let magiskinit directly spawn new magisk_daemon process
This commit is contained in:
parent
b0567eadfd
commit
d21264d01b
@ -393,7 +393,7 @@ static void magisk_init_daemon() {
|
|||||||
* We restart the daemon again */
|
* We restart the daemon again */
|
||||||
close(fd);
|
close(fd);
|
||||||
if (fork_dont_care() == 0) {
|
if (fork_dont_care() == 0) {
|
||||||
execv("/sbin/magisk", (char *[]) { "resetprop", "magisk.daemon", "1", NULL } );
|
execv("/sbin/magisk", (char *[]) { "magisk", "--daemon", NULL } );
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,10 +16,6 @@ const char magiskrc[] =
|
|||||||
" rm /dev/.magisk.unblock\n"
|
" rm /dev/.magisk.unblock\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
"on property:magisk.daemon=1\n"
|
|
||||||
" start magisk_daemon\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
// Services
|
// Services
|
||||||
|
|
||||||
"service magisk_daemon /sbin/magisk --daemon\n"
|
"service magisk_daemon /sbin/magisk --daemon\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user