]> TLD Linux GIT Repositories - packages/apache.git/blobdiff - httpd-2.0.48-corelimit.patch
- updated to 2.4.59
[packages/apache.git] / httpd-2.0.48-corelimit.patch
index b9c120004c261ff73e1876c3a53c650e9ca2c75d..c3007fe71202bd6024dd64568d122ab770c924b9 100644 (file)
@@ -2,12 +2,13 @@
 Automatically raise the core file size limit if CoreDumpDirectory
 is configured.
 
---- httpd-2.4.1/server/core.c.orig     2012-02-22 00:09:24.000000000 +0100
-+++ httpd-2.4.1/server/core.c  2012-02-22 00:15:07.329200901 +0100
-@@ -4433,6 +4433,24 @@
-     }
-     apr_pool_cleanup_register(pconf, NULL, ap_mpm_end_gen_helper,
-                               apr_pool_cleanup_null);
+--- httpd-2.0.48/server/core.c.corelimit
++++ httpd-2.0.48/server/core.c
+@@ -4424,6 +4424,25 @@
+     ap_setup_make_content_type(pconf);
+     ap_setup_auth_internal(ptemp);
+     ap_setup_ssl_optional_fns(pconf);
++
 +#ifdef RLIMIT_CORE
 +    if (ap_coredumpdir_configured) {
 +        struct rlimit lim;
@@ -26,6 +27,7 @@ is configured.
 +    }
 +#endif
 +
-     return OK;
- }
+     if (!sys_privileges) {
+         ap_log_error(APLOG_MARK, APLOG_CRIT, 0, NULL, APLOGNO(00136)
+                      "Server MUST relinquish startup privileges before "
+