mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
subsys: Make the subsystem init order match the module dependencies
Fix levels for subsystems that depend on log/err * winprocess (security) doesn't use err: * call windows process security APIs as early as possible * init err after winprocess * move wallclock so it's still after err * network and time depend on log: * make sure that network and time can use logging. * init network and time after log Add comments explaining the module init order. Fixes bug 31615; bugfix on 0.4.0.1-alpha.
This commit is contained in:
@@ -122,6 +122,8 @@ subsys_threads_initialize(void)
|
||||
const subsys_fns_t sys_threads = {
|
||||
.name = "threads",
|
||||
.supported = true,
|
||||
/* Threads is used by logging, which is a diagnostic feature, we want it to
|
||||
* init right after low-level error handling and approx time. */
|
||||
.level = -95,
|
||||
.initialize = subsys_threads_initialize,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user