]> granicus.if.org Git - apache/commitdiff
change the name of AP_MPM_NEEDS_RECLAIM_CHILD_PROCESSES to
authorJeff Trawick <trawick@apache.org>
Mon, 13 Aug 2001 18:24:53 +0000 (18:24 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 13 Aug 2001 18:24:53 +0000 (18:24 +0000)
be more consistent with similar names added recently; this
also cleans up an #if/#ifdef discrepency

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90141 13f79535-47bb-0310-9956-ffa450edef68

include/mpm_common.h
server/mpm/beos/mpm.h
server/mpm/experimental/perchild/mpm.h
server/mpm/perchild/mpm.h
server/mpm/prefork/mpm.h
server/mpm/threaded/mpm.h
server/mpm/worker/mpm.h
server/mpm_common.c

index bbc28cd2a0b1909b843b3b927bd39d5003772d4e..9cca64c04145ed883960a068b5aee2ab63ade443 100644 (file)
@@ -76,7 +76,7 @@
 #include <netinet/tcp.h>    /* for TCP_NODELAY */
 #endif
 
-#include "mpm.h" /* for AP_MPM_NEEDS_RECLAIM_CHILD_PROCESSES setting */
+#include "mpm.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -112,7 +112,7 @@ extern "C" {
  *  MPM_NOTE_CHILD_KILLED -- Note the child died in the scoreboard
  * </pre>
  */
-#if AP_MPM_NEEDS_RECLAIM_CHILD_PROCESSES
+#ifdef AP_MPM_WANT_RECLAIM_CHILD_PROCESSES
 void ap_reclaim_child_processes(int terminate);
 #endif
 
index bdeb82ef8f30c1e4780701229b0188359bf6b09e..e7faf2e324a0698988dcc2570c3d1fdef8397a67 100644 (file)
 #include "scoreboard.h"
 
 #define MPM_NAME "Beos"
-#define AP_MPM_NEEDS_RECLAIM_CHILD_PROCESSES 1
 #define MPM_SYNC_CHILD_TABLE()
 #define MPM_CHILD_PID(i) (ap_scoreboard_image->servers[0][i].tid)
 #define MPM_NOTE_CHILD_KILLED(i) (MPM_CHILD_PID(i) = 0)
 
+#define AP_MPM_WANT_RECLAIM_CHILD_PROCESSES
 #define AP_MPM_WANT_WAIT_OR_TIMEOUT
 #define AP_MPM_WANT_PROCESS_CHILD_STATUS
 #define AP_MPM_WANT_SET_PIDFILE
index 0a8df316b96cee9da09ff92110854d189e8d24fc..c1bbf0ae8fccf71821929f4d6d5dd77a1fbd2372 100644 (file)
@@ -67,6 +67,7 @@
 
 #define MPM_NAME "Perchild"
 
+#define AP_MPM_WANT_RECLAIM_CHILD_PROCESSES
 #define AP_MPM_WANT_WAIT_OR_TIMEOUT
 #define AP_MPM_WANT_PROCESS_CHILD_STATUS
 #define AP_MPM_WANT_SET_PIDFILE
@@ -76,7 +77,6 @@
 #define AP_MPM_WANT_SET_COREDUMPDIR
 #define AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
 
-#define AP_MPM_NEEDS_RECLAIM_CHILD_PROCESSES 1
 #define MPM_SYNC_CHILD_TABLE()
 #define MPM_CHILD_PID(i) (ap_child_table[i].pid)
 #define MPM_NOTE_CHILD_KILLED(i) (MPM_CHILD_PID(i) = 0)
index 0a8df316b96cee9da09ff92110854d189e8d24fc..c1bbf0ae8fccf71821929f4d6d5dd77a1fbd2372 100644 (file)
@@ -67,6 +67,7 @@
 
 #define MPM_NAME "Perchild"
 
+#define AP_MPM_WANT_RECLAIM_CHILD_PROCESSES
 #define AP_MPM_WANT_WAIT_OR_TIMEOUT
 #define AP_MPM_WANT_PROCESS_CHILD_STATUS
 #define AP_MPM_WANT_SET_PIDFILE
@@ -76,7 +77,6 @@
 #define AP_MPM_WANT_SET_COREDUMPDIR
 #define AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
 
-#define AP_MPM_NEEDS_RECLAIM_CHILD_PROCESSES 1
 #define MPM_SYNC_CHILD_TABLE()
 #define MPM_CHILD_PID(i) (ap_child_table[i].pid)
 #define MPM_NOTE_CHILD_KILLED(i) (MPM_CHILD_PID(i) = 0)
index 5dbac99c42763477e2bfd177a4c09e1160b37589..48a5a3df88ad077a2ea2ef3fcb024c0eeb688046 100644 (file)
@@ -68,6 +68,7 @@
 
 #define MPM_NAME "Prefork"
 
+#define AP_MPM_WANT_RECLAIM_CHILD_PROCESSES
 #define AP_MPM_WANT_WAIT_OR_TIMEOUT
 #define AP_MPM_WANT_PROCESS_CHILD_STATUS
 #define AP_MPM_WANT_SET_PIDFILE
@@ -78,7 +79,6 @@
 #define AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
 
 #define AP_MPM_USES_POD 1
-#define AP_MPM_NEEDS_RECLAIM_CHILD_PROCESSES 1
 #define MPM_SYNC_CHILD_TABLE() (ap_sync_scoreboard_image())
 #define MPM_CHILD_PID(i) (ap_scoreboard_image->parent[i].pid)
 #define MPM_NOTE_CHILD_KILLED(i) (MPM_CHILD_PID(i) = 0)
index 49d01ecb7f59c042b5406e3611253080d422634c..fdd87263e928a39cb33e58eb58861547ed473532 100644 (file)
@@ -65,6 +65,7 @@
 
 #define MPM_NAME "Threaded"
 
+#define AP_MPM_WANT_RECLAIM_CHILD_PROCESSES
 #define AP_MPM_WANT_WAIT_OR_TIMEOUT
 #define AP_MPM_WANT_PROCESS_CHILD_STATUS
 #define AP_MPM_WANT_SET_PIDFILE
@@ -74,7 +75,6 @@
 #define AP_MPM_WANT_SET_COREDUMPDIR
 #define AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
 
-#define AP_MPM_NEEDS_RECLAIM_CHILD_PROCESSES 1
 #define MPM_SYNC_CHILD_TABLE() (ap_sync_scoreboard_image())
 #define MPM_CHILD_PID(i) (ap_scoreboard_image->parent[i].pid)
 #define MPM_NOTE_CHILD_KILLED(i) (MPM_CHILD_PID(i) = 0)
index 571a00cc2b8c0e82eb33b3f5d58d9f3d71d331bf..a9a91455ec59a8d31f4acf58229f7236fd42655b 100644 (file)
@@ -65,6 +65,7 @@
 
 #define MPM_NAME "Worker"
 
+#define AP_MPM_WANT_RECLAIM_CHILD_PROCESSES
 #define AP_MPM_WANT_WAIT_OR_TIMEOUT
 #define AP_MPM_WANT_PROCESS_CHILD_STATUS
 #define AP_MPM_WANT_SET_PIDFILE
@@ -74,7 +75,6 @@
 #define AP_MPM_WANT_SET_COREDUMPDIR
 #define AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
 
-#define AP_MPM_NEEDS_RECLAIM_CHILD_PROCESSES 1
 #define MPM_SYNC_CHILD_TABLE() (ap_sync_scoreboard_image())
 #define MPM_CHILD_PID(i) (ap_scoreboard_image->parent[i].pid)
 #define MPM_NOTE_CHILD_KILLED(i) (MPM_CHILD_PID(i) = 0)
index 883db9329458b2ccf4303ef1aa84aad0f80e4a28..234382884eb6ed8efdefc0082cc0da8c7e57a4ce 100644 (file)
@@ -93,7 +93,7 @@
 #include <grp.h>
 #endif
 
-#ifdef AP_MPM_NEEDS_RECLAIM_CHILD_PROCESSES
+#ifdef AP_MPM_WANT_RECLAIM_CHILD_PROCESSES
 void ap_reclaim_child_processes(int terminate)
 {
     int i;
@@ -186,7 +186,7 @@ void ap_reclaim_child_processes(int terminate)
         }
     }
 }
-#endif /* AP_MPM_NEEDS_RECLAIM_CHILD_PROCESSES */
+#endif /* AP_MPM_WANT_RECLAIM_CHILD_PROCESSES */
 
 #ifdef AP_MPM_WANT_WAIT_OR_TIMEOUT