From: Jeff Trawick Date: Mon, 18 Mar 2002 18:12:43 +0000 (+0000) Subject: prefork and worker: X-Git-Tag: 2.0.34~256 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67f3ac2762df95771ad91fa3e54ef300dbbb4936;p=apache prefork and worker: after allocating a new scoreboard, make sure the right generation is stored in the global score git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93998 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c index f2710eb35f..43121289b3 100644 --- a/server/mpm/prefork/prefork.c +++ b/server/mpm/prefork/prefork.c @@ -972,6 +972,11 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s) if (ap_run_pre_mpm(pconf, SB_SHARED) != OK) { return 1; } + /* fix the generation number in the global score; we just got a new, + * cleared scoreboard + */ + ap_scoreboard_image->global->running_generation = ap_my_generation; + update_scoreboard_global(); } #ifdef SCOREBOARD_FILE else { diff --git a/server/mpm/worker/worker.c b/server/mpm/worker/worker.c index d199c91db4..d9859ebd76 100644 --- a/server/mpm/worker/worker.c +++ b/server/mpm/worker/worker.c @@ -1424,6 +1424,11 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s) if (ap_run_pre_mpm(pconf, SB_SHARED) != OK) { return 1; } + /* fix the generation number in the global score; we just got a new, + * cleared scoreboard + */ + ap_scoreboard_image->global->running_generation = ap_my_generation; + update_scoreboard_global(); } set_signals();