From: Bill Stoddard Date: Fri, 9 Feb 2001 16:11:50 +0000 (+0000) Subject: Replace reinit_scoreboard with ap_create_scoreboard. X-Git-Tag: 2.0.10~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2456e496302833d87746b66c7b7e595c6124841;p=thirdparty%2Fapache%2Fhttpd.git Replace reinit_scoreboard with ap_create_scoreboard. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88037 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/scoreboard.h b/include/scoreboard.h index 659d9ab7142..3e70fb96fbe 100644 --- a/include/scoreboard.h +++ b/include/scoreboard.h @@ -225,7 +225,6 @@ typedef struct { AP_DECLARE(int) ap_exists_scoreboard_image(void); AP_DECLARE(void) ap_create_scoreboard(apr_pool_t *p, ap_scoreboard_e t); -void reinit_scoreboard(apr_pool_t *p); apr_status_t ap_cleanup_scoreboard(void *d); AP_DECLARE(void) reopen_scoreboard(apr_pool_t *p); diff --git a/server/mpm/beos/beos.c b/server/mpm/beos/beos.c index 61543ab2158..359532ae461 100644 --- a/server/mpm/beos/beos.c +++ b/server/mpm/beos/beos.c @@ -677,7 +677,7 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s) */ if (!is_graceful) - reinit_scoreboard(pconf); + ap_create_scoreboard(pconf, SB_SHARED); set_signals(); /* Sanity cehcks to avoid thrashing... */ diff --git a/server/mpm/dexter/dexter.c b/server/mpm/dexter/dexter.c index 36ef64bd979..810cb63ce88 100644 --- a/server/mpm/dexter/dexter.c +++ b/server/mpm/dexter/dexter.c @@ -1019,7 +1019,7 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s) } if (!is_graceful) { - reinit_scoreboard(pconf); + ap_create_scoreboard(pconf, SB_SHARED); } /* Initialize the child table */ if (!is_graceful) { diff --git a/server/mpm/experimental/perchild/perchild.c b/server/mpm/experimental/perchild/perchild.c index c3dd7231bd4..b31333018c9 100644 --- a/server/mpm/experimental/perchild/perchild.c +++ b/server/mpm/experimental/perchild/perchild.c @@ -1179,7 +1179,7 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s) } if (!is_graceful) { - reinit_scoreboard(pconf); + ap_create_scoreboard(pconf, SB_SHARED); } /* Initialize the child table */ if (!is_graceful) { diff --git a/server/mpm/mpmt_beos/mpmt_beos.c b/server/mpm/mpmt_beos/mpmt_beos.c index 431561675e6..f23b28f1385 100644 --- a/server/mpm/mpmt_beos/mpmt_beos.c +++ b/server/mpm/mpmt_beos/mpmt_beos.c @@ -700,7 +700,7 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s) } if (!is_graceful) { - reinit_scoreboard(pconf); + ap_create_scoreboard(pconf, SB_SHARED); } set_signals(); diff --git a/server/mpm/mpmt_pthread/mpmt_pthread.c b/server/mpm/mpmt_pthread/mpmt_pthread.c index fba44e769fe..0211ad46eb4 100644 --- a/server/mpm/mpmt_pthread/mpmt_pthread.c +++ b/server/mpm/mpmt_pthread/mpmt_pthread.c @@ -1026,7 +1026,7 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s) if (!is_graceful) { - reinit_scoreboard(pconf); + ap_create_scoreboard(pconf, SB_SHARED); } set_signals(); diff --git a/server/mpm/perchild/perchild.c b/server/mpm/perchild/perchild.c index c3dd7231bd4..b31333018c9 100644 --- a/server/mpm/perchild/perchild.c +++ b/server/mpm/perchild/perchild.c @@ -1179,7 +1179,7 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s) } if (!is_graceful) { - reinit_scoreboard(pconf); + ap_create_scoreboard(pconf, SB_SHARED); } /* Initialize the child table */ if (!is_graceful) { diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c index ccb18c369db..739bc58380b 100644 --- a/server/mpm/prefork/prefork.c +++ b/server/mpm/prefork/prefork.c @@ -1088,7 +1088,7 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s) SAFE_ACCEPT(accept_mutex_init(pconf)); if (!is_graceful) { - reinit_scoreboard(pconf); + ap_create_scoreboard(pconf, SB_SHARED); } #ifdef SCOREBOARD_FILE else { diff --git a/server/scoreboard.c b/server/scoreboard.c index bf1a32a8d95..ba5a913d4af 100644 --- a/server/scoreboard.c +++ b/server/scoreboard.c @@ -188,15 +188,6 @@ AP_DECLARE(void) ap_create_scoreboard(apr_pool_t *p, ap_scoreboard_e sb_type) apr_pool_cleanup_register(p, NULL, ap_cleanup_scoreboard, apr_pool_cleanup_null); } -/* ToDo: - * reinit_scoreboard should be eliminated when all MPMs migrate to - * ap_create_scoreboard() - */ -void reinit_scoreboard(apr_pool_t *p) -{ - ap_create_scoreboard(p, SB_SHARED); -} - /* Routines called to deal with the scoreboard image * --- note that we do *not* need write locks, since update_child_status * only updates a *single* record in place, and only one process writes to