2 Automatically raise the core file size limit if CoreDumpDirectory
5 --- httpd-2.3.8/server/core.c~ 2010-09-01 13:15:44.000000000 +0300
6 +++ httpd-2.3.8/server/core.c 2010-09-01 13:16:25.533795195 +0300
10 ap_setup_make_content_type(pconf);
13 + if (ap_coredumpdir_configured) {
16 + if (getrlimit(RLIMIT_CORE, &lim) == 0 && lim.rlim_cur == 0) {
17 + lim.rlim_cur = lim.rlim_max;
18 + if (setrlimit(RLIMIT_CORE, &lim) == 0) {
19 + ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL,
20 + "core dump file size limit raised to %lu bytes",
23 + ap_log_error(APLOG_MARK, APLOG_NOTICE, errno, NULL,
24 + "core dump file size is zero, setrlimit failed");
30 ap_setup_auth_internal(ptemp);
31 if (!sys_privileges) {
32 ap_log_error(APLOG_MARK, APLOG_CRIT, 0, NULL,