Add trigger_mgr to iosource_mgr later during startup

This fixes a potential crash due to trigger_mgr getting shutdown earlier
than dns_mgr, and dns_mgr then trying to use it after it's been deleted.
This change forces the order of initialization/destruction in
iosource_mgr to cause dns_mgr to be deleted first.
This commit is contained in:
Tim Wojtulewicz 2023-03-06 13:12:45 -07:00
parent 117d25dcd8
commit b26f4a83b3
3 changed files with 8 additions and 3 deletions

View file

@ -884,8 +884,7 @@ SetupResult setup(int argc, char** argv, Options* zopts)
analyzer_mgr->InitPostScript();
file_mgr->InitPostScript();
dns_mgr->InitPostScript();
// dns_mgr->LookupAddr("17.253.144.10");
trigger_mgr->InitPostScript();
#ifdef USE_PERFTOOLS_DEBUG
}