httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Darroch <chr...@pearsoncmg.com>
Subject [PATCH 3/6] generation number unset
Date Thu, 04 May 2006 17:36:54 GMT
Hi --

   This may not be necessary, but I notice that prefork and most of
the other MPMs set ap_my_generation to an initial value of zero.
The worker and event MPMs don't, though.

Chris.

=====================================================================
--- server/mpm/experimental/event/event.c.orig	2006-05-03 07:20:37.953905913 -0400
+++ server/mpm/experimental/event/event.c	2006-05-03 10:37:41.262464486 -0400
@@ -395,7 +395,7 @@
 static int volatile restart_pending;
 static int volatile is_graceful;
 static volatile int child_fatal;
-ap_generation_t volatile ap_my_generation;
+ap_generation_t volatile ap_my_generation = 0;
 
 /*
  * ap_start_shutdown() and ap_start_restart(), below, are a first stab at
--- server/mpm/worker/worker.c.orig	2006-05-02 22:24:09.727476765 -0400
+++ server/mpm/worker/worker.c	2006-05-03 10:37:26.814544916 -0400
@@ -353,7 +353,7 @@
 static int volatile restart_pending;
 static int volatile is_graceful;
 static volatile int child_fatal;
-ap_generation_t volatile ap_my_generation;
+ap_generation_t volatile ap_my_generation = 0;
 
 /*
  * ap_start_shutdown() and ap_start_restart(), below, are a first stab at

Mime
View raw message