0e3136
diff --git a/server/core.c b/server/core.c
0e3136
index 79b2a82..dc0f17a 100644
0e3136
--- a/server/core.c
0e3136
+++ b/server/core.c
0e3136
@@ -4996,6 +4996,25 @@ static int core_post_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *pte
0e3136
     }
0e3136
     apr_pool_cleanup_register(pconf, NULL, ap_mpm_end_gen_helper,
0e3136
                               apr_pool_cleanup_null);
0e3136
+
0e3136
+#ifdef RLIMIT_CORE
0e3136
+    if (ap_coredumpdir_configured) {
0e3136
+        struct rlimit lim;
0e3136
+
0e3136
+        if (getrlimit(RLIMIT_CORE, &lim) == 0 && lim.rlim_cur == 0) {
0e3136
+            lim.rlim_cur = lim.rlim_max;
0e3136
+            if (setrlimit(RLIMIT_CORE, &lim) == 0) {
0e3136
+                ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL,
0e3136
+                             "core dump file size limit raised to %lu bytes",
0e3136
+                             lim.rlim_cur);
0e3136
+            } else {
0e3136
+                ap_log_error(APLOG_MARK, APLOG_NOTICE, errno, NULL,
0e3136
+                             "core dump file size is zero, setrlimit failed");
0e3136
+            }
0e3136
+        }
0e3136
+    }
0e3136
+#endif
0e3136
+
0e3136
     return OK;
0e3136
 }
0e3136