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>
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