mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
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.
This commit is contained in:
@@ -417,9 +417,9 @@ isc_nm_destroy(isc_nm_t **mgr0) {
|
||||
isc_nm_pause(mgr);
|
||||
isc_nm_resume(mgr);
|
||||
#ifdef WIN32
|
||||
_sleep(1000);
|
||||
_sleep(10);
|
||||
#else /* ifdef WIN32 */
|
||||
usleep(1000000);
|
||||
usleep(10000);
|
||||
#endif /* ifdef WIN32 */
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user