bitbake: toaster: clear up toaster shutdown for mac osx

This patch properly shuts down toaster in interactive mode
under Mac OSx.

(Bitbake rev: a00cd5135a4bbd61d311fa17569894f974ab4420)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanevskiy 2015-03-31 17:56:58 +01:00 committed by Richard Purdie
parent 2d69dd2caf
commit 84a294edde
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ function webserverKillAll()
kill -SIGTERM -$(< ${pidfile}) 2>/dev/null
sleep 1;
# Kill processes if they are still running - may happen in interactive shells
ps fux | grep "python.*manage.py runserver" | awk '{print $2}' | xargs kill
pkill -U $UID -f "python.*manage.py runserver"
done;
rm ${pidfile}
fi