[bitbake-devel] [PATCH 01/11] toaster: clear up toaster shutdown for mac osx

Alex DAMIAN alexandru.damian at intel.com
Mon May 11 10:58:32 UTC 2015


From: Alexander Kanevskiy <alexander.kanevskiy at intel.com>

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

Signed-off-by: Alexandru DAMIAN <alexandru.damian at intel.com>
---
 bin/toaster | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/toaster b/bin/toaster
index 7907b57..792fb72 100755
--- a/bin/toaster
+++ b/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
-- 
1.9.1




More information about the bitbake-devel mailing list