Commit 51693f0b authored by Danny Mayer's avatar Danny Mayer
Browse files

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

parent 18b71336
......@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment