You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2005/06/28 20:44:48 UTC

svn commit: r202265 - /httpd/httpd/branches/2.0.x/support/win32/ApacheMonitor.c

Author: wrowe
Date: Tue Jun 28 11:44:46 2005
New Revision: 202265

URL: http://svn.apache.org/viewcvs?rev=202265&view=rev
Log:

  Commit a trivial patch which permits Apache 2.0's ApacheMonitor
  to browse Apache 1.3, 2.0 and now, 2.1+ installed httpd services.

Modified:
    httpd/httpd/branches/2.0.x/support/win32/ApacheMonitor.c

Modified: httpd/httpd/branches/2.0.x/support/win32/ApacheMonitor.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/support/win32/ApacheMonitor.c?rev=202265&r1=202264&r2=202265&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/support/win32/ApacheMonitor.c (original)
+++ httpd/httpd/branches/2.0.x/support/win32/ApacheMonitor.c Tue Jun 28 11:44:46 2005
@@ -998,7 +998,9 @@
                         lstrcpy(szBuf, szImagePath);
                         CharLower(szBuf);
                         /* the service name could be Apache*.exe */
-                        if ((strstr(szBuf, "\\apache") != NULL)
+                        /* the service name could be httpd*.exe or Apache*.exe */
+                        if (((strstr(szBuf, "\\apache") != NULL)
+                             || (strstr(szBuf, "\\httpd") != NULL))
                                 && strstr(szBuf, ".exe") 
                                 && (strstr(szBuf, "--ntservice") != NULL 
                                        || strstr(szBuf, "-k ") != NULL))