Make sure logcat process does not become a zombie

This commit is contained in:
topjohnwu
2019-02-14 17:36:18 -05:00
parent 4872df6a46
commit 9430dbb96c
5 changed files with 48 additions and 14 deletions

View File

@@ -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);
});
}
}