summaryrefslogtreecommitdiff
path: root/support/config.m4
diff options
context:
space:
mode:
authorBrian Pane <brianp@apache.org>2002-07-14 23:18:45 +0000
committerBrian Pane <brianp@apache.org>2002-07-14 23:18:45 +0000
commit86fa777f8db9e219818d52dba3dc144b7f769235 (patch)
tree38d8084b770d51c339752e72c8c1c55eedf14015 /support/config.m4
parentb05f096d5feb6b7687e8a99f3421899447f099bd (diff)
downloadhttpd-86fa777f8db9e219818d52dba3dc144b7f769235.tar.gz
Increase the per-process file descriptor limit in apachectl
for the benefit of people running multithreaded MPMs or lots of vhosts git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96053 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/config.m4')
-rw-r--r--support/config.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/support/config.m4 b/support/config.m4
index 5dd691f89e..ad52a8c03c 100644
--- a/support/config.m4
+++ b/support/config.m4
@@ -81,3 +81,9 @@ fi
])
APACHE_SUBST(checkgid_LTFLAGS)
+if TMP_ULIMIT=`ulimit -H -n` && ulimit -S -n $TMP_ULIMIT ; then
+ APACHECTL_ULIMIT="ulimit -S -n \`ulimit -H -n\`"
+else
+ APACHECTL_ULIMIT=""
+fi
+APACHE_SUBST(APACHECTL_ULIMIT)