Run pthread_atfork only once

Close #7704
This commit is contained in:
topjohnwu
2024-01-25 00:17:05 -08:00
parent b44141ae39
commit f2c4288d2d
4 changed files with 8 additions and 2 deletions
+2
View File
@@ -15,6 +15,8 @@ static void zygiskd(int socket) {
if (getuid() != 0 || fcntl(socket, F_GETFD) < 0)
exit(-1);
init_thread_pool();
#if defined(__LP64__)
set_nice_name("zygiskd64");
LOGI("* Launching zygiskd64\n");