diff options
author | Kunhoon Baik <knhoon.baik@samsung.com> | 2016-09-26 13:08:18 +0900 |
---|---|---|
committer | Kunhoon Baik <knhoon.baik@samsung.com> | 2016-09-26 13:08:18 +0900 |
commit | a9c79aa1062c8e335982499f2b3f99413cfd5455 (patch) | |
tree | f52aab3bf55a219b26734bf8533c6006f705b89b | |
parent | 3dfea60f96640c395286038e75102544c41a08ff (diff) | |
download | crash-worker-a9c79aa1062c8e335982499f2b3f99413cfd5455.tar.gz crash-worker-a9c79aa1062c8e335982499f2b3f99413cfd5455.tar.bz2 crash-worker-a9c79aa1062c8e335982499f2b3f99413cfd5455.zip |
Set debugmode by checking debugmode filesubmit/tizen_3.0_wearable/20161015.000001submit/tizen_3.0_tv/20161015.000001submit/tizen_3.0_mobile/20161015.000001submit/tizen_3.0_ivi/20161010.000001submit/tizen_3.0_common/20161104.104000submit/tizen/20160926.074333accepted/tizen/wearable/20160927.021051accepted/tizen/tv/20160927.021042accepted/tizen/mobile/20160927.021102accepted/tizen/ivi/20160927.020736accepted/tizen/common/20160926.154301accepted/tizen/3.0/wearable/20161015.081841accepted/tizen/3.0/tv/20161016.003932accepted/tizen/3.0/mobile/20161015.032636accepted/tizen/3.0/ivi/20161011.043757accepted/tizen/3.0/common/20161114.110031
- If debugmode is enabled, crash popup is shown
- Else crash popup is not shown.
Related patch : https://review.tizen.org/gerrit/#/c/88421/
Change-Id: Iad7d79309b507d96e26ddda99472acadc0a45cd9
-rw-r--r-- | packaging/crash-worker.spec | 6 | ||||
-rw-r--r-- | src/crash-manager/crash-manager.sh.in | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/packaging/crash-worker.spec b/packaging/crash-worker.spec index a071e5c..3b98404 100644 --- a/packaging/crash-worker.spec +++ b/packaging/crash-worker.spec @@ -1,6 +1,4 @@ %define sys_assert on -%define crash_popup off - Name: crash-worker Summary: Crash-manager @@ -24,9 +22,6 @@ Requires(post): coreutils Requires(post): tar Requires(post): gzip Requires: libunwind -%if %{?crash_popup} == on -Requires: /usr/bin/dbus-send -%endif # If you need support for core dump files (see building below), # you should add this dependency # Requires: libebl @@ -72,7 +67,6 @@ export CFLAGS+=" -Werror" -DCRASH_TEMP=%{crash_temp} \ -DCRASH_PIPE_PATH=%{_libexecdir}/crash-pipe \ -DCRASH_STACK_PATH=%{_libexecdir}/crash-stack \ - -DCRASH_POPUP=%{crash_popup} \ -DSYS_ASSERT=%{sys_assert} \ -DUPGRADE_SCRIPT_PATH=%{upgrade_script_path} # to add support for core dump files add backslash at the end of above line diff --git a/src/crash-manager/crash-manager.sh.in b/src/crash-manager/crash-manager.sh.in index 540f446..3d3f2fc 100644 --- a/src/crash-manager/crash-manager.sh.in +++ b/src/crash-manager/crash-manager.sh.in @@ -1,5 +1,7 @@ #!/bin/sh +source /etc/tizen-platform.conf + PATH=/bin:/usr/bin:/sbin:/usr/sbin exec >/dev/null 2>&1 @@ -45,7 +47,7 @@ else @CRASH_STACK_PATH@ --pid "$pid" >> "$info_path" fi -if [ "@CRASH_POPUP@" = "on" ] +if [ -e $TZ_SYS_ETC/.debugmode ] then #Find the full path of executable. The path is used to find appid in the crash-popup exepath=" " |