Nick,

"It works!" ... but needs to have mpm_common.h included
I notice it takes about 4 seconds to serve the "It works" page on this
P4 3.0G HT, 2.5G DDR2 XP  VC6

Gregg

--- modules/arch/win32/mod_win32.c    (revision 724570)
+++ modules/arch/win32/mod_win32.c    (working copy)
@@ -31,6 +31,7 @@
#include "mod_cgi.h"
#include "apr_lib.h"
#include "ap_regkey.h"
+#include "mpm_common.h"

extern OSVERSIONINFO osver; /* hiding in mpm_winnt.c */
static int win_nt;
@@ -544,6 +545,7 @@
static int win32_pre_config(apr_pool_t *pconf_, apr_pool_t *plog, apr_pool_t *ptemp)
{
    win_nt = (osver.dwPlatformId != VER_PLATFORM_WIN32_WINDOWS);
+    ap_sys_privileges_handlers(1);
    return OK;
}



Nick Kew wrote:
Gregg L. Smith wrote:

Am I missing something?

[Mon Dec 08 13:21:17 2008] [crit] Server MUST relinquish startup privileges before accepting connections. Please ensure mod_unixd or other system security module is loaded.
Configuration Failed

Probably not.  Looks like this'll be broken on all non-unix-family
platforms, for the same reason.

Does the following patch fix it for you?

--- modules/arch/win32/mod_win32.c    (revision 724570)
+++ modules/arch/win32/mod_win32.c    (working copy)
@@ -544,6 +544,7 @@
static int win32_pre_config(apr_pool_t *pconf_, apr_pool_t *plog, apr_pool_t *ptemp)
 {
     win_nt = (osver.dwPlatformId != VER_PLATFORM_WIN32_WINDOWS);
+    ap_sys_privileges_handlers(1);
     return OK;
 }


Reply via email to