File 0196-cdv-Set-ERL_CRASH_DUMP_SECONDS-to-0-in-cdv-scripts.patch of Package erlang

From 0994e6fcef37da935ade7952e4ed1b6573eca033 Mon Sep 17 00:00:00 2001
From: Siri Hansen <siri@erlang.org>
Date: Thu, 7 Sep 2017 15:38:12 +0200
Subject: [PATCH 1/9] 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.
---
 lib/observer/priv/bin/cdv     | 2 +-
 lib/observer/priv/bin/cdv.bat | 2 +-
 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 %*
-- 
2.14.1

openSUSE Build Service is sponsored by