2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

isc_loopmgr_pause was called inappropriately

isc_loopmgr_pause can't be called before isc_loopmgr_run is
called as the thread ids are not yet valid.  If there is a
fatal error before isc_loopmgr_run is run then don't call
isc_loopmgr_pause.
This commit is contained in:
Mark Andrews
2023-04-11 15:32:51 +10:00
parent 453aaac2f0
commit be68dd62ea
3 changed files with 8 additions and 1 deletions

View File

@@ -1506,6 +1506,10 @@ main(int argc, char *argv[]) {
*/
isc_signal_start(named_g_server->sighup);
/*
* Pause the loop manager in fatal.
*/
named_g_loopmgr_running = true;
isc_loopmgr_run(named_g_loopmgr);
#ifdef HAVE_LIBSCF