The subsystem 'subsystems_thread_init' and 'subsystems_thread_cleanup' functions are now run in the main thread.
@@ -1274,6 +1274,7 @@ tor_run_main(const tor_main_configuration_t *tor_cfg)
#endif
subsystems_init();
+ subsystems_thread_init();
init_protocol_warning_severity_level();
@@ -158,6 +158,7 @@ tor_free_all(int postfork)
release_lockfile();
}
+ subsystems_thread_cleanup();
subsystems_shutdown();
/* Stuff in util.c and address.c*/