From: William A. Rowe Jr Date: Mon, 19 Nov 2001 15:27:52 +0000 (+0000) Subject: Historically consistent flag to shutdown the server [stop is supported, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1215dd14c8554f6428650ab30f788568702b5005;p=apache Historically consistent flag to shutdown the server [stop is supported, but only more recently.] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92034 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/win32/ApacheMonitor.c b/support/win32/ApacheMonitor.c index 0e1666d123..f71af51c46 100644 --- a/support/win32/ApacheMonitor.c +++ b/support/win32/ApacheMonitor.c @@ -591,7 +591,7 @@ BOOL ApacheManageService(LPCSTR szServiceName, LPCSTR szImagePath, DWORD dwComma switch (dwCommand) { case SERVICE_CONTROL_STOP: - lstrcat(szBuf, " -k stop -n "); + lstrcat(szBuf, " -k shutdown -n "); break; case SERVICE_CONTROL_CONTINUE: sprintf(szMsg, g_lpMsg[IDS_MSG_SRVSTART-IDS_MSG_FIRST], szServiceName); @@ -820,7 +820,7 @@ BOOL IsServiceRunning(LPCSTR szServiceName, LPDWORD lpdwPid) return FALSE; } -BOOL FindRunningServices() +BOOL FindRunningServices(void) { int i = 0; DWORD dwPid;