On Sat, Jul 14, 2001 at 11:00:36PM -0700, Justin Erenkrantz wrote:
> Is this just an oversight? NO_SERIALIZED_ACCEPT is never defined
> anywhere. I'm beginning to wonder how maintained threaded MPM is. =)
Oops. Disregard the previous patch (but not my comments - they still
stand). This is closer - copied from prefork MPM. -- justin
Index: server/mpm/threaded/threaded.c
===================================================================
RCS file: /home/cvs/httpd-2.0/server/mpm/threaded/threaded.c,v
retrieving revision 1.44
diff -u -r1.44 threaded.c
--- server/mpm/threaded/threaded.c 2001/07/03 13:58:10 1.44
+++ server/mpm/threaded/threaded.c 2001/07/15 06:11:59
@@ -183,8 +183,8 @@
static apr_lockmech_e_np accept_lock_mech = APR_LOCK_DEFAULT;
static const char *lock_fname;
-#ifdef NO_SERIALIZED_ACCEPT
-#define SAFE_ACCEPT(stmt) APR_SUCCESS
+#ifdef SINGLE_LISTEN_UNSERIALIZED_ACCEPT
+#define SAFE_ACCEPT(stmt) do {if (ap_listeners->next) {stmt;}} while(0)
#else
#define SAFE_ACCEPT(stmt) (stmt)
#endif