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

View File

@@ -52,6 +52,7 @@ void unregister_poll(int fd, bool auto_close);
void clear_poll();
// Thread pool
void init_thread_pool();
void exec_task(std::function<void()> &&task);
// Daemon handlers