diff options
author | Yann Ylavic <ylavic@apache.org> | 2018-01-19 10:32:53 +0100 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2018-01-19 10:32:53 +0100 |
commit | 5cf277ef5d5657dc972116c9811ae43fd59f18a7 (patch) | |
tree | e18bf16cf5facb9d5d411950eb3fdd47a448c067 /server/mpm_unix.c | |
parent | mpm_event: Follow up to r1821558. (diff) | |
download | apache2-5cf277ef5d5657dc972116c9811ae43fd59f18a7.tar.xz apache2-5cf277ef5d5657dc972116c9811ae43fd59f18a7.zip |
mpm_unix: Follow up to r1821526.
Clear recycled_pools_count in ap_free_idle_pools().
[Reverted by r1821619]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1821605 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/mpm_unix.c')
-rw-r--r-- | server/mpm_unix.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/server/mpm_unix.c b/server/mpm_unix.c index b7e16e5024..5a2f132a4a 100644 --- a/server/mpm_unix.c +++ b/server/mpm_unix.c @@ -1380,11 +1380,13 @@ void ap_free_idle_pools(fd_queue_info_t *queue_info) apr_pool_t *p; queue_info->max_recycled_pools = 0; - do { + for (;;) { ap_pop_pool(&p, queue_info); - if (p != NULL) - apr_pool_destroy(p); - } while (p != NULL); + if (p == NULL) + break; + apr_pool_destroy(p); + } + apr_atomic_set32(&queue_info->recycled_pools_count, 0); } |