Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 37421 invoked from network); 10 Aug 2007 11:14:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Aug 2007 11:14:03 -0000 Received: (qmail 31857 invoked by uid 500); 10 Aug 2007 11:14:01 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 31813 invoked by uid 500); 10 Aug 2007 11:14:01 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 31802 invoked by uid 99); 10 Aug 2007 11:14:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Aug 2007 04:14:01 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Aug 2007 11:14:03 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 646D41A981A; Fri, 10 Aug 2007 04:13:40 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r564552 - in /httpd/httpd/branches/2.2.x: STATUS support/win32/ApacheMonitor.c Date: Fri, 10 Aug 2007 11:13:40 -0000 To: cvs@httpd.apache.org From: jim@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070810111340.646D41A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jim Date: Fri Aug 10 04:13:39 2007 New Revision: 564552 URL: http://svn.apache.org/viewvc?view=rev&rev=564552 Log: Merge r536052, r556879, r557188 from trunk: Add detection for post XP operating systems. Think this can be safely backported to 2.2 and 2.0 branches ApacheMonitor valid OS is any WIN32_NT version. Simplify OS detection. We are only interested in NT and WIN2K+ (so we can use services.msc) Submitted by: mturk Reviewed by: jim Modified: httpd/httpd/branches/2.2.x/STATUS httpd/httpd/branches/2.2.x/support/win32/ApacheMonitor.c Modified: httpd/httpd/branches/2.2.x/STATUS URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/STATUS?view=diff&rev=564552&r1=564551&r2=564552 ============================================================================== --- httpd/httpd/branches/2.2.x/STATUS (original) +++ httpd/httpd/branches/2.2.x/STATUS Fri Aug 10 04:13:39 2007 @@ -78,19 +78,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - * ApacheMonitor: Fix Windows Vista detection. - http://svn.apache.org/viewvc?view=rev&revision=536052 - http://svn.apache.org/viewvc?view=rev&revision=556879 - http://svn.apache.org/viewvc?view=rev&revision=557188 - +1: mturk, jim (by inspection), sctemme (ditto) - wrowe notes post today to list, can we please test for >= VISTA - so this doesn't break again upon the release of longhorn server - or 'nextgen' windows? - mturk notes: Simplified OS detection so any NT version will work - sctemme notes: we're effectively voting on - svn diff -r536051:557188 \ - http://svn.apache.org/repos/asf/httpd/httpd/trunk/support/win32/ApacheMonitor.c - * mod_proxy_ajp: Add support of ProxyIOBufferSize. Trunk version of patch: http://svn.apache.org/viewvc?view=rev&rev=467014 Modified: httpd/httpd/branches/2.2.x/support/win32/ApacheMonitor.c URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/support/win32/ApacheMonitor.c?view=diff&rev=564552&r1=564551&r2=564552 ============================================================================== --- httpd/httpd/branches/2.2.x/support/win32/ApacheMonitor.c (original) +++ httpd/httpd/branches/2.2.x/support/win32/ApacheMonitor.c Fri Aug 10 04:13:39 2007 @@ -49,6 +49,7 @@ #define OS_VERSION_WIN9X 1 #define OS_VERSION_WINNT 2 #define OS_VERSION_WIN2K 3 + /* Should be enough */ #define MAX_APACHE_SERVICES 128 #define MAX_APACHE_COMPUTERS 32 @@ -278,15 +279,10 @@ switch (osvi.dwPlatformId) { case VER_PLATFORM_WIN32_NT: - if (osvi.dwMajorVersion <= 4) { - *dwVersion = OS_VERSION_WINNT; - } - else if (osvi.dwMajorVersion == 5) { + if (osvi.dwMajorVersion >= 5) *dwVersion = OS_VERSION_WIN2K; - } - else { - return FALSE; - } + else + *dwVersion = OS_VERSION_WINNT; break; case VER_PLATFORM_WIN32_WINDOWS: