From 42c25d034004adf2fa96ce6509385ba0d997beb1 Mon Sep 17 00:00:00 2001 From: Aaron Bannert Date: Fri, 7 Dec 2001 18:19:16 +0000 Subject: [PATCH] Fix bug that could potentially prevent perchild from working with more than one vhost/uid. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92374 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 3 +++ server/mpm/experimental/perchild/perchild.c | 2 +- server/mpm/perchild/perchild.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 9694d39e57..6060769421 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0.30-dev + *) Fix bug that could potentially prevent the perchild MPM from + working with more than one vhost/uid. [Aaron Bannert] + *) Change make install processing of DSO modules to perform special handling on platforms where libtool doesn't install mod_foo.so. This fixes some wonkiness on HP-UX, Tru64, and AIX which diff --git a/server/mpm/experimental/perchild/perchild.c b/server/mpm/experimental/perchild/perchild.c index 32bc7bac79..fb83a84a1f 100644 --- a/server/mpm/experimental/perchild/perchild.c +++ b/server/mpm/experimental/perchild/perchild.c @@ -1740,7 +1740,7 @@ static const char *set_child_per_uid(cmd_parms *cmd, void *dummy, const char *u, { int i; int max_this_time = atoi(num) + curr_child_num; - for (i = curr_child_num; i < max_this_time; i++, curr_child_num++); { + for (i = curr_child_num; i < max_this_time; i++, curr_child_num++) { child_info_t *ug = &child_info_table[i - 1]; if (i > num_daemons) { diff --git a/server/mpm/perchild/perchild.c b/server/mpm/perchild/perchild.c index 32bc7bac79..fb83a84a1f 100644 --- a/server/mpm/perchild/perchild.c +++ b/server/mpm/perchild/perchild.c @@ -1740,7 +1740,7 @@ static const char *set_child_per_uid(cmd_parms *cmd, void *dummy, const char *u, { int i; int max_this_time = atoi(num) + curr_child_num; - for (i = curr_child_num; i < max_this_time; i++, curr_child_num++); { + for (i = curr_child_num; i < max_this_time; i++, curr_child_num++) { child_info_t *ug = &child_info_table[i - 1]; if (i > num_daemons) { -- 2.50.1