From 161b1d20e18697b0f1c04cf7eef0eeaf8b3203cb Mon Sep 17 00:00:00 2001 From: anssih Date: Fri, 22 Oct 2010 23:00:00 +0000 Subject: 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 --- tools/Linux/xbmc.sh.in | 10 ++++++---- 1 file 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 -- cgit v1.2.3