[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r32480 - msh/src
From: |
gnunet |
Subject: |
[GNUnet-SVN] r32480 - msh/src |
Date: |
Wed, 26 Feb 2014 15:07:09 +0100 |
Author: harsha
Date: 2014-02-26 15:07:09 +0100 (Wed, 26 Feb 2014)
New Revision: 32480
Modified:
msh/src/mshd.c
Log:
Set resource limits for core file generation to unlimited.
Modified: msh/src/mshd.c
===================================================================
--- msh/src/mshd.c 2014-02-25 21:10:13 UTC (rev 32479)
+++ msh/src/mshd.c 2014-02-26 14:07:09 UTC (rev 32480)
@@ -15,6 +15,8 @@
#include "pmonitor.h"
#include "server.h"
+#include <sys/resource.h>
+
#define LOG(kind,...) \
GNUNET_log (kind, __VA_ARGS__)
@@ -1486,11 +1488,19 @@
GNUNET_YES, &GNUNET_GETOPT_set_uint, &round_width},
GNUNET_GETOPT_OPTION_END
};
+ static struct rlimit rlim;
int ret;
ret = 1;
round_width = 1;
GNUNET_log_setup ("mshd", NULL, NULL);
+ rlim.rlim_cur = RLIM_INFINITY;
+ rlim.rlim_max = RLIM_INFINITY;
+ if (0 != setrlimit (RLIMIT_CORE, &rlim))
+ {
+ LOG_ERROR ("Failed to set core file size limit to unlimited\n");
+ return 1;
+ }
if (MPI_SUCCESS != MPI_Init(&argc, &argv))
{
LOG_ERROR ("Failed to initialise MPI\n");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r32480 - msh/src,
gnunet <=