mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-18 05:33:17 +00:00
b6546f923b
When initializing security key, a background thread may occur. Sometimes, the system would go to daemonize while that thread was still running, and the whole system could exit. Leading to incomplete write to globals as well as leaving the daemon looking at the data copied over from pre-fork and seeing the last state of that thread forever frozen. Make sure the background threads are fully done prior to exiting.