summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-06-21 11:27:50 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-06-21 11:27:50 +0900
commit655a8f3218790c83e52c0ba5b12dfa8beb72e230 (patch)
treea82f9c767ae5b42e6e1662a0b09cfb3eec6a7607
parentdae4bd6576da48e2cda036b27600709afa734bcc (diff)
e start - remove mtrack ... no one using it (not even me)
:)
-rw-r--r--src/bin/e_start_main.c36
1 files changed, 2 insertions, 34 deletions
diff --git a/src/bin/e_start_main.c b/src/bin/e_start_main.c
index 132102c7e..2ebb3747a 100644
--- a/src/bin/e_start_main.c
+++ b/src/bin/e_start_main.c
@@ -616,40 +616,8 @@ main(int argc, char **argv)
616 home = getenv("HOME"); 616 home = getenv("HOME");
617 if (home) 617 if (home)
618 { 618 {
619 const char *tmps; 619 const char *tmps = getenv("XDG_DATA_HOME");
620#if 1 620
621 FILE *f;
622 /* mtrack memory tracker support */
623 /* if you have ~/.e-mtrack, then the tracker will be enabled
624 * using the content of this file as the path to the mtrack.so
625 * shared object that is the mtrack preload */
626 snprintf(buf, sizeof(buf), "%s/.e-mtrack", home);
627 f = fopen(buf, "r");
628 if (f)
629 {
630 if (fgets(buf, sizeof(buf), f))
631 {
632 int len = strlen(buf);
633 if ((len > 1) && (buf[len - 1] == '\n'))
634 {
635 buf[len - 1] = 0;
636 len--;
637 }
638 env_set("LD_PRELOAD", buf);
639// env_set("MTRACK", "track");
640// env_set("E_START_MTRACK", "track");
641// snprintf(buf, sizeof(buf), "%s/.e-mtrack.log", home);
642// env_set("MTRACK_TRACE_FILE", buf);
643 env_set("MTRACK", "debug");
644 env_set("MTRACK_FREE_FILL", "1");
645 env_set("MTRACK_ALLOC_FILL", "2");
646 env_set("MTRACK_CANARY_SIZE", "16");
647 env_set("MTRACK_CANARY", "3");
648 }
649 fclose(f);
650 }
651#endif
652 tmps = getenv("XDG_DATA_HOME");
653 if (tmps) 621 if (tmps)
654 snprintf(buf, sizeof(buf), "%s/Applications/.bin", tmps); 622 snprintf(buf, sizeof(buf), "%s/Applications/.bin", tmps);
655 else 623 else