]> git.ipfire.org Git - thirdparty/bind9.git/commit
Make sure we shutdown the controlconf listeners and connections once
authorOndřej Surý <ondrej@isc.org>
Mon, 6 Nov 2023 19:19:20 +0000 (20:19 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 16 Nov 2023 15:58:12 +0000 (16:58 +0100)
commit5734d6c8266a6baecbd9907e38e9caa506250164
tree0370a803916f98e0ca5d2410f19003acd7f3bf87
parentf4ca058a06f06a27c74692658c9ea9b88114390a
Make sure we shutdown the controlconf listeners and connections once

It was possible that controlconf connections could be shutdown twice
when shutting down the server, because they would receive the
signal (ISC_R_SHUTTINGDOWN result) from netmgr and then the shutdown
procedure would be called second time via controls_shutdown().

Split the shutdown procedure from control_recvmessage(), so we can call
it independently from netmgr callbacks and make sure it will be called
only once.  Do the similar thing for the listeners.
bin/named/control.c
bin/named/controlconf.c