From: Bill Stoddard Date: Fri, 9 Feb 2001 16:11:50 +0000 (+0000) Subject: Replace reinit_scoreboard with ap_create_scoreboard. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b611ea7356bcfaa4d4daf7dbf2ec822e3806466;p=apache 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 659d9ab714..3e70fb96fb 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 61543ab215..359532ae46 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 36ef64bd97..810cb63ce8 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 c3dd7231bd..b31333018c 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 431561675e..f23b28f138 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 fba44e769f..0211ad46eb 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 c3dd7231bd..b31333018c 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 ccb18c369d..739bc58380 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 bf1a32a8d9..ba5a913d4a 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