diff options
author | anssih <anssih@svn> | 2010-10-22 23:00:00 +0000 |
---|---|---|
committer | anssih <anssih@svn> | 2010-10-22 23:00:00 +0000 |
commit | 161b1d20e18697b0f1c04cf7eef0eeaf8b3203cb (patch) | |
tree | 9af4189d38f5d56b328757e4d1ffdd6099c76549 /tools/Linux | |
parent | 4e12de52807a2b4f09dbc0ca8c25428a65db73e0 (diff) |
fixed: do not enable core dumps when gdb is not installed
xbmc.sh.in can't handle core dumps without gdb, so do not enable them in
the first place in that case.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@34955 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools/Linux')
-rw-r--r-- | tools/Linux/xbmc.sh.in | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/Linux/xbmc.sh.in b/tools/Linux/xbmc.sh.in index 28d98a10cd..5c240c77c1 100644 --- a/tools/Linux/xbmc.sh.in +++ b/tools/Linux/xbmc.sh.in @@ -108,10 +108,12 @@ if [ $RET -ne 0 ]; then exit $RET fi -# Output warning in case ulimit is unsupported by shell -eval ulimit -c unlimited -if [ ! $? = "0" ]; then - echo "xbmc: ulimit is unsupported by this shell" 1>&2 +if which gdb >/dev/null 2>&1; then + # Output warning in case ulimit is unsupported by shell + eval ulimit -c unlimited + if [ ! $? = "0" ]; then + echo "xbmc: ulimit is unsupported by this shell" 1>&2 + fi fi LOOP=1 |