summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiri Hansen <siri@erlang.org>2017-09-07 15:38:12 +0200
committerSiri Hansen <siri@erlang.org>2017-09-13 17:45:25 +0200
commit0994e6fcef37da935ade7952e4ed1b6573eca033 (patch)
treef74e881eb53f6c76d4b87662cc47176adbdc2b89
parent8e5fff1eb3a967ebc66c4cec1dd91699cdea66c0 (diff)
downloaderlang-0994e6fcef37da935ade7952e4ed1b6573eca033.tar.gz
cdv: Set ERL_CRASH_DUMP_SECONDS to 0 in cdv scripts
This is to avoid crashdumps generated by crashdump_viewer, possibly overwriting the currently analysed crashdump.
-rwxr-xr-xlib/observer/priv/bin/cdv2
-rw-r--r--lib/observer/priv/bin/cdv.bat2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/observer/priv/bin/cdv b/lib/observer/priv/bin/cdv
index d14fd47e41..2a509c16af 100755
--- a/lib/observer/priv/bin/cdv
+++ b/lib/observer/priv/bin/cdv
@@ -1,4 +1,4 @@
#!/bin/sh
-erl -noinput -s crashdump_viewer script_start $@
+erl -env ERL_CRASH_DUMP_SECONDS 0 -noinput -s crashdump_viewer script_start $@
diff --git a/lib/observer/priv/bin/cdv.bat b/lib/observer/priv/bin/cdv.bat
index 18136a30d6..fa87c08adf 100644
--- a/lib/observer/priv/bin/cdv.bat
+++ b/lib/observer/priv/bin/cdv.bat
@@ -1,2 +1,2 @@
@ECHO OFF
-CALL werl -s crashdump_viewer script_start %*
+CALL werl -env ERL_CRASH_DUMP_SECONDS 0 -s crashdump_viewer script_start %*