diff --git a/CHANGES b/CHANGES index ae83d90b91..cf4f4e4d19 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +5213. [bug] win32: Eliminated a race which allowed named.exe running + as a service to be killed prematurely during shutdown. + [GL #978] + 5210. [bug] When dnstap is enabled and recursion is not available, incoming queries are now logged as "auth". Previously, this depended on whether diff --git a/bin/named/win32/ntservice.c b/bin/named/win32/ntservice.c index 23a5dc4b40..fe4ab5c44d 100644 --- a/bin/named/win32/ntservice.c +++ b/bin/named/win32/ntservice.c @@ -82,7 +82,7 @@ ServiceControl(DWORD dwCtrlCode) { case SERVICE_CONTROL_STOP: ns_server_flushonshutdown(ns_g_server, true); isc_app_shutdown(); - UpdateSCM(SERVICE_STOPPED); + UpdateSCM(SERVICE_STOP_PENDING); break; default: break;