* Enable core dumps regardless of system ulimit setting
authorArt Cancro <ajc@citadel.org>
Mon, 26 Apr 2004 15:11:17 +0000 (15:11 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 26 Apr 2004 15:11:17 +0000 (15:11 +0000)
  (maybe temporary until we fix BOOM)

citadel/ChangeLog
citadel/sysdep.c

index 01373a9dd6a0d97a9c524234cf01f7d59c80ac20..54052ad369155114356fe401172ec2f5adabc3bd 100644 (file)
@@ -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 <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
-
index aea5614cdcb4eadf0335a52954873f6b016b0f35..f0e9dc45754d25d2cb3482169c867b059d726fc2 100644 (file)
@@ -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