summaryrefslogtreecommitdiffstats
path: root/server/mpm/prefork/prefork.c
diff options
context:
space:
mode:
authorBradley Nicholes <bnicholes@apache.org>2003-08-28 00:33:12 +0200
committerBradley Nicholes <bnicholes@apache.org>2003-08-28 00:33:12 +0200
commitdc4cfa16400b1c1b5152306d09130eff3fafddbe (patch)
tree06c08369e3d0c5725259e1542f4c6ca2f8808c06 /server/mpm/prefork/prefork.c
parentsimplifications. Don't repeat the same code again and again. (diff)
downloadapache2-dc4cfa16400b1c1b5152306d09130eff3fafddbe.tar.xz
apache2-dc4cfa16400b1c1b5152306d09130eff3fafddbe.zip
Make sure that the global ap_max_mem_free is initialized along with the
other MPM globals whenever HTTPD is started or restarted. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101117 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/mpm/prefork/prefork.c')
-rw-r--r--server/mpm/prefork/prefork.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c
index d9dbca81a5..33442e5341 100644
--- a/server/mpm/prefork/prefork.c
+++ b/server/mpm/prefork/prefork.c
@@ -1219,6 +1219,9 @@ static int prefork_pre_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp
ap_lock_fname = DEFAULT_LOCKFILE;
ap_max_requests_per_child = DEFAULT_MAX_REQUESTS_PER_CHILD;
ap_extended_status = 0;
+#ifdef AP_MPM_WANT_SET_MAX_MEM_FREE
+ ap_max_mem_free = APR_ALLOCATOR_MAX_FREE_UNLIMITED;
+#endif
apr_cpystrn(ap_coredump_dir, ap_server_root, sizeof(ap_coredump_dir));