2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Added case to ensure that normal cleanup code is run during system shutdown

This commit is contained in:
Danny Mayer
2002-02-02 00:56:40 +00:00
parent 18b7133679
commit 51693f0bd9

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: ntservice.c,v 1.4 2001/09/01 05:27:46 mayer Exp $ */
/* $Id: ntservice.c,v 1.5 2002/02/02 00:56:40 mayer Exp $ */
#include <config.h>
#include <stdio.h>
@@ -135,6 +135,7 @@ ServiceControl(DWORD dwCtrlCode) {
UpdateSCM(0);
break;
case SERVICE_CONTROL_SHUTDOWN:
case SERVICE_CONTROL_STOP:
ns_server_flushonshutdown(ns_g_server, ISC_TRUE);
isc_app_shutdown();