mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-14 17:59:59 +00:00
25ba859ab6
* Enable threading for PHP * Backport a number of patches * Use apachectl in init script * Install modules into a sane location * Ensure apxs script is installed into sysroot in crossscripts directory and modified so that it works for building PHP * Install httpd executable for native version so that PHP configure script can call it * Rename server-makefile-patch to server-makefile.patch and drop apply=yes * Add LIC_FILES_CHKSUM * Fix packaging QA warnings * Add LSB headers to init script * Clean out some cruft and move packaging stuff after do_install Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
|
|
Bump up the core size limit if CoreDumpDirectory is
|
|
configured.
|
|
|
|
Upstream-Status: Pending
|
|
|
|
Note: upstreaming 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;
|
|
}
|
|
|