From: Art Cancro Date: Mon, 26 Apr 2004 15:11:17 +0000 (+0000) Subject: * Enable core dumps regardless of system ulimit setting X-Git-Tag: v7.86~5452 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=5d014c1af2d54a0d8a90d970906a4aba8aa4efab;p=citadel.git * Enable core dumps regardless of system ulimit setting (maybe temporary until we fix BOOM) --- diff --git a/citadel/ChangeLog b/citadel/ChangeLog index 01373a9dd..54052ad36 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,8 @@ $Log$ + Revision 620.23 2004/04/26 15:11:17 ajc + * Enable core dumps regardless of system ulimit setting + (maybe temporary until we fix BOOM) + Revision 620.22 2004/04/23 17:27:50 ajc * user_ops.c: do not attempt to save the loaded user record into the supplied buffer, when the supplied buffer is NULL. (This calling @@ -5720,4 +5724,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import - diff --git a/citadel/sysdep.c b/citadel/sysdep.c index aea5614cd..f0e9dc457 100644 --- a/citadel/sysdep.c +++ b/citadel/sysdep.c @@ -206,6 +206,10 @@ static RETSIGTYPE signal_cleanup(int signum) { void init_sysdep(void) { int a; + /* Enable core dumps */ + struct rlimit lim = { RLIM_INFINITY, RLIM_INFINITY }; + setrlimit(RLIMIT_CORE, &lim); + #ifdef HAVE_OPENSSL init_ssl(); #endif