From 1cb2ca9f829e50ac1e669238d7692149315f3855 Mon Sep 17 00:00:00 2001 From: Brian Havard Date: Sat, 24 Feb 2001 00:40:28 +0000 Subject: [PATCH] Fix initialization of thread_control[...].generation. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88294 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/spmt_os2/spmt_os2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2