prctl(PR_SET_DUMPABLE, 0) is not neccessary. Kernel runs the
crash-manager and sets RLIMIT_CORE to 1 for the process. This is special
value that prevents from running crash-manager recursively.
Change-Id: I33df7c28c6ce939f2903d02af673734d473b649e
int debug_mode = access(DEBUGMODE_PATH, F_OK) == 0;
#endif
- prctl(PR_SET_DUMPABLE, 0);
+ /*
+ * prctl(PR_SET_DUMPABLE, 0) is not neccessary. Kernel runs the
+ * crash-manager and sets RLIMIT_CORE to 1 for the process. This is special
+ * value that prevents from running crash-manager recursively.
+ */
/* Get Configuration */
+
get_config();
/* Create crash directories */
char *opt_save_core = NULL;
int ret = 1;
- prctl(PR_SET_DUMPABLE, 0);
-
argv0 = argv[0];
while ((c = getopt_long_only(argc, argv, "", opts, NULL)) != -1) {
pid_t tid = 0;
char bufferfile_path[20] = "/tmp/crash.XXXXXX";
- prctl(PR_SET_DUMPABLE, 0);
-
while ((c = getopt_long_only(argc, argv, "", opts, NULL)) != -1) {
switch (c) {
case OPT_PID: