]> git.ipfire.org Git - thirdparty/bind9.git/commit
On shutdown, return ISC_R_SHUTTINGDOWN from isc_taskmgr_excltask()
authorOndřej Surý <ondrej@isc.org>
Wed, 5 Jan 2022 10:48:22 +0000 (11:48 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 5 Jan 2022 12:41:12 +0000 (13:41 +0100)
commitf9d90159b84831fd83d74594827fedf0f4e9e265
tree8ef69718b565a966ff461cdccf36b3f239cb9d41
parentb2c9543a6ebfbc92ed6bc35aff8102588da01c39
On shutdown, return ISC_R_SHUTTINGDOWN from isc_taskmgr_excltask()

The isc_taskmgr_excltask() would return ISC_R_NOTFOUND either when the
exclusive task was not set (yet) or when the taskmgr is shutting down
and the exclusive task has been already cleared.

Distinguish between the two states and return ISC_R_SHUTTINGDOWN when
the taskmgr is being shut down instead of ISC_R_NOTFOUND.
lib/isc/task.c