2 Automatically raise the core file size limit if CoreDumpDirectory
5 --- httpd-2.4.1/server/core.c.orig 2012-02-22 00:09:24.000000000 +0100
6 +++ httpd-2.4.1/server/core.c 2012-02-22 00:15:07.329200901 +0100
9 apr_pool_cleanup_register(pconf, NULL, ap_mpm_end_gen_helper,
10 apr_pool_cleanup_null);
12 + if (ap_coredumpdir_configured) {
15 + if (getrlimit(RLIMIT_CORE, &lim) == 0 && lim.rlim_cur == 0) {
16 + lim.rlim_cur = lim.rlim_max;
17 + if (setrlimit(RLIMIT_CORE, &lim) == 0) {
18 + ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL,
19 + "core dump file size limit raised to %lu bytes",
22 + ap_log_error(APLOG_MARK, APLOG_NOTICE, errno, NULL,
23 + "core dump file size is zero, setrlimit failed");