diff -Naur httpd-2.2.3-postpatch/server/mpm/experimental/peruser/peruser.c httpd-2.2.3/server/mpm/experimental/peruser/peruser.c --- httpd-2.2.3-postpatch/server/mpm/experimental/peruser/peruser.c 2008-02-11 22:41:24.000000000 -0600 +++ httpd-2.2.3/server/mpm/experimental/peruser/peruser.c 2008-02-11 22:38:28.000000000 -0600 @@ -114,6 +114,10 @@ #include /* for bindprocessor() */ #endif +#ifdef HAVE_SYS_PRCTL_H +#include +#endif + #if APR_HAS_SHARED_MEMORY #include "apr_shm.h" #else @@ -1440,6 +1444,18 @@ (long) senv->uid); return -1; } +#if defined(HAVE_PRCTL) && defined(PR_SET_DUMPABLE) + /* this applies to Linux 2.4+ */ +#ifdef AP_MPM_WANT_SET_COREDUMPDIR + if (ap_coredumpdir_configured) { + if (prctl(PR_SET_DUMPABLE, 1)) { + ap_log_error(APLOG_MARK, APLOG_ALERT, errno, NULL, + "set dumpable failed - this child will not coredump" + " after software errors"); + } + } +#endif +#endif return 0; }