From: Brian Havard Date: Sat, 24 Feb 2001 00:40:28 +0000 (+0000) Subject: Fix initialization of thread_control[...].generation. X-Git-Tag: 2.0.12~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cb2ca9f829e50ac1e669238d7692149315f3855;p=thirdparty%2Fapache%2Fhttpd.git Fix initialization of thread_control[...].generation. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88294 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/spmt_os2/spmt_os2.c b/server/mpm/spmt_os2/spmt_os2.c index 4ed16a97d20..8cb31273d03 100644 --- a/server/mpm/spmt_os2/spmt_os2.c +++ b/server/mpm/spmt_os2/spmt_os2.c @@ -518,6 +518,7 @@ static void thread_main(void *thread_num_arg) *ppthread_globals = (struct thread_globals *)apr_palloc(pchild, sizeof(struct thread_globals)); THREAD_GLOBAL(thread_num) = (int)thread_num_arg; THREAD_GLOBAL(pchild) = pchild; + thread_control[THREAD_GLOBAL(thread_num)].generation = ap_scoreboard_image->global.running_generation; apr_pool_create(&ptrans, pchild); if (setup_listen_poll(pchild, &listen_poll)) { @@ -743,7 +744,6 @@ static int make_child(server_rec *s, int slot) } ap_scoreboard_image->servers[0][slot].tid = tid; - thread_control[THREAD_GLOBAL(thread_num)].generation = ap_scoreboard_image->global.running_generation; return 0; }