From 84a294eddee8405d9133f8c365e9589dd254197d Mon Sep 17 00:00:00 2001 From: Alexander Kanevskiy Date: Tue, 31 Mar 2015 17:56:58 +0100 Subject: [PATCH] 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 Signed-off-by: Richard Purdie --- bitbake/bin/toaster | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index 7907b574c14..792fb7210c1 100755 --- a/bitbake/bin/toaster +++ b/bitbake/bin/toaster @@ -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 -- 2.47.2