proper setrlimit patch
Index: exec/main.c
===================================================================
--- exec/main.c	(revision 2359)
+++ exec/main.c	(working copy)
@@ -56,6 +56,8 @@
 #include <signal.h>
 #include <sched.h>
 #include <time.h>
+#include <sys/time.h>
+#include <sys/resource.h>
 
 #include <corosync/swab.h>
 #include <corosync/corotypes.h>
@@ -716,6 +718,11 @@
 #endif
 }
 
+struct rlimit rlim = {
+	.rlim_cur = RLIM_INFINITY,
+	.rlim_max = RLIM_INFINITY,
+};
+
 int main (int argc, char **argv)
 {
 	const char *error_string;
@@ -1036,6 +1043,7 @@
 
 	coroipcs_ipc_init (&ipc_init_state);
 
+	setrlimit (RLIMIT_CORE, &rlim);
 	/*
 	 * Start main processing loop
 	 */
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to