httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk" <mt...@mappingsoft.com>
Subject [PATCH] mpm_winnt fix the ap_mpm_query
Date Thu, 04 Jul 2002 06:32:57 GMT
Hi,
The patch enables finding a child slot in the scoreboard using
find_child_by_pid.
Right now the reported number of childs is 0 which is not true, cause we
have a single child, and it is in the scoreboard image already.

It's not a big problem, but disables writing portable code among
different platforms, cause Netware will always report 1, and the unix
versions >= 1, and the WIN report that as 0!


Index: mpm_winnt.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/server/mpm/winnt/mpm_winnt.c,v
retrieving revision 1.285
diff -u -3 -r1.285 mpm_winnt.c
--- mpm_winnt.c	2 Jul 2002 19:03:15 -0000	1.285
+++ mpm_winnt.c	4 Jul 2002 06:23:24 -0000
@@ -57,6 +57,7 @@
  */
 
 #define CORE_PRIVATE 
+
 #include "httpd.h" 
 #include "http_main.h" 
 #include "http_log.h" 
@@ -1969,7 +1970,7 @@
             *result = ap_max_requests_per_child;
             return APR_SUCCESS;
         case AP_MPMQ_MAX_DAEMONS:
-            *result = 0;
+            *result = 1;
             return APR_SUCCESS;
     }
     return APR_ENOTIMPL;





MT.


Mime
View raw message