diff --git a/compile/eclipsebuild/eclipseds5build.gsh b/compile/eclipsebuild/eclipseds5build.gsh index f05603a..2a6fce3 100644 --- a/compile/eclipsebuild/eclipseds5build.gsh +++ b/compile/eclipsebuild/eclipseds5build.gsh @@ -4,13 +4,16 @@ def doKillLeftovers() { sh """ # Killing any processes that may interfere with the next build # The build system must be setup to do more than one eclipse build concurrently - ps aux | grep "eclipsews" - ps aux | grep "make" - ps aux | grep "arm-linux" + USER=`whoami` + pgrep -U "${USER}" "eclipse" + pgrep -U "${USER}" "eclipsews" + pgrep -U "${USER}" "make" + pgrep -U "${USER}" "arm-linux" # Don't return an error if the processes don't exist - pkill -9 eclipsews || true - pkill -9 make || true - pkill -9 ".*arm-linux.*" || true + pkill -U "${USER}" -9 eclipse || true + pkill -U "${USER}" -9 eclipsews || true + pkill -U "${USER}" -9 make || true + pkill -U "${USER}" -9 ".*arm-linux.*" || true """ } }