summaryrefslogtreecommitdiffstats
path: root/server/mpm/prefork
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2009-03-29 21:30:17 +0200
committerJeff Trawick <trawick@apache.org>2009-03-29 21:30:17 +0200
commit35e3599b25f9331d242420b3ffb1dd54af755e0c (patch)
treed3035ca797568eb701f29711fce2b705ebc6ec6c /server/mpm/prefork
parentUse child singleton watchdog for running the heartbeat module (diff)
downloadapache2-35e3599b25f9331d242420b3ffb1dd54af755e0c.tar.xz
apache2-35e3599b25f9331d242420b3ffb1dd54af755e0c.zip
the mpm_get_child_pid hook is unnecessary, as was the per-MPM MPM_CHILD_PID() macro which it replaced
axe this new hook, and use ap_get_scoreboard_process() instead git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@759757 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/mpm/prefork')
-rw-r--r--server/mpm/prefork/prefork.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c
index 553355deac..9f65a754b7 100644
--- a/server/mpm/prefork/prefork.c
+++ b/server/mpm/prefork/prefork.c
@@ -291,11 +291,6 @@ static apr_status_t prefork_query(int query_code, int *result)
return APR_ENOTIMPL;
}
-static pid_t prefork_get_child_pid(int childnum)
-{
- return ap_scoreboard_image->parent[childnum].pid;
-}
-
static apr_status_t prefork_note_child_killed(int childnum)
{
ap_scoreboard_image->parent[childnum].pid = 0;
@@ -1458,7 +1453,6 @@ static void prefork_hooks(apr_pool_t *p)
ap_hook_check_config(prefork_check_config, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_mpm(prefork_run, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_mpm_query(prefork_query, NULL, NULL, APR_HOOK_MIDDLE);
- ap_hook_mpm_get_child_pid(prefork_get_child_pid, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_mpm_note_child_killed(prefork_note_child_killed, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_mpm_get_name(prefork_get_name, NULL, NULL, APR_HOOK_MIDDLE);
}