summaryrefslogtreecommitdiffstats
path: root/httpd-2.4.1-corelimit.patch
diff options
context:
space:
mode:
authorJoe Orton <jorton@redhat.com>2012-03-13 09:55:18 +0000
committerJoe Orton <jorton@redhat.com>2012-03-13 09:55:18 +0000
commit3a44ff765502ac564b64b4958239d30e8566dcaf (patch)
tree24433e423b88c4319e138caa4d0e3c94a8458b30 /httpd-2.4.1-corelimit.patch
parent61679dd90cf1ebd9e9342223ce5344346a9142ce (diff)
downloadhttpd-3a44ff765502ac564b64b4958239d30e8566dcaf.tar.gz
httpd-3a44ff765502ac564b64b4958239d30e8566dcaf.tar.xz
httpd-3a44ff765502ac564b64b4958239d30e8566dcaf.zip
update to 2.4.1
- adopt upstream default httpd.conf (almost verbatim) - split all LoadModules to conf.modules.d/*.conf - include conf.d/*.conf at end of httpd.conf - trim %changelog
Diffstat (limited to 'httpd-2.4.1-corelimit.patch')
-rw-r--r--httpd-2.4.1-corelimit.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/httpd-2.4.1-corelimit.patch b/httpd-2.4.1-corelimit.patch
new file mode 100644
index 0000000..96f8486
--- /dev/null
+++ b/httpd-2.4.1-corelimit.patch
@@ -0,0 +1,35 @@
+
+Bump up the core size limit if CoreDumpDirectory is
+configured.
+
+Upstream-Status: Was discussed but there are competing desires;
+ there are portability oddities here too.
+
+--- httpd-2.4.1/server/core.c.corelimit
++++ httpd-2.4.1/server/core.c
+@@ -4433,6 +4433,25 @@ static int core_post_config(apr_pool_t *
+ }
+ apr_pool_cleanup_register(pconf, NULL, ap_mpm_end_gen_helper,
+ apr_pool_cleanup_null);
++
++#ifdef RLIMIT_CORE
++ if (ap_coredumpdir_configured) {
++ struct rlimit lim;
++
++ if (getrlimit(RLIMIT_CORE, &lim) == 0 && lim.rlim_cur == 0) {
++ lim.rlim_cur = lim.rlim_max;
++ if (setrlimit(RLIMIT_CORE, &lim) == 0) {
++ ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL,
++ "core dump file size limit raised to %lu bytes",
++ lim.rlim_cur);
++ } else {
++ ap_log_error(APLOG_MARK, APLOG_NOTICE, errno, NULL,
++ "core dump file size is zero, setrlimit failed");
++ }
++ }
++ }
++#endif
++
+ return OK;
+ }
+