]> git.ipfire.org Git - thirdparty/bind9.git/commit
purge pending command events when shutting down
authorEvan Hunt <each@isc.org>
Fri, 3 Jul 2020 22:34:51 +0000 (15:34 -0700)
committerEvan Hunt <each@isc.org>
Mon, 13 Jul 2020 20:17:08 +0000 (13:17 -0700)
commit29dcdeba1b99236253298808fa513f114b8162bc
tree715dbd125160146272f10f39cd11e0db55fcb57d
parent45ab0603eb9e76f78d173b687fdf3cb8ab598913
purge pending command events when shutting down

When we're shutting the system down via "rndc stop" or "rndc halt",
or reconfiguring the control channel, there are potential shutdown
races between the server task and network manager.  These are adressed by:

- purging any pending command tasks when shutting down the control channel
- adding an extra handle reference before the command handler to
  ensure the handle can't be deleted out from under us before calling
  command_respond()
bin/named/controlconf.c