mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-16 07:02:38 +00:00
Make sure logcat process does not become a zombie
This commit is contained in:
@@ -366,11 +366,9 @@ void auto_start_magiskhide() {
|
||||
db_settings dbs;
|
||||
get_db_settings(&dbs, HIDE_CONFIG);
|
||||
if (dbs[HIDE_CONFIG]) {
|
||||
pthread_t thread;
|
||||
xpthread_create(&thread, nullptr, [](void*) -> void* {
|
||||
new_daemon_thread([](auto) -> void* {
|
||||
launch_magiskhide(-1);
|
||||
return nullptr;
|
||||
}, nullptr);
|
||||
pthread_detach(thread);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user