]> git.ipfire.org Git - thirdparty/bind9.git/commit
shorten the sleep in isc_nm_destroy()
authorEvan Hunt <each@isc.org>
Fri, 10 Apr 2020 23:59:24 +0000 (16:59 -0700)
committerOndřej Surý <ondrej@isc.org>
Thu, 1 Oct 2020 14:44:43 +0000 (16:44 +0200)
commite1ebbaacea346dafb3f77d37396647153b1c4ca7
tree51d15315cae9541f840bf764e6ab6c7d42c4e4bb
parenta9061ea123c531c7f94962663802e7d49242570c
shorten the sleep in isc_nm_destroy()

when isc_nm_destroy() is called, there's a loop that waits for
other references to be detached, pausing and unpausing the netmgr
to ensure that all the workers' events are run, followed by a
1-second sleep. this caused a delay on shutdown which will be
noticeable when netmgr is used in tools other than named itself,
so the delay has now been reduced to a hundredth of a second.

(cherry picked from commit 870204fe47b093b3a0ff43f6f20696c63b9582d5)
lib/isc/netmgr/netmgr.c