From 844314844eccaf2ddca4ed4fcf5a4aa9328509b0 Mon Sep 17 00:00:00 2001 From: David Reyna Date: Thu, 15 Feb 2018 20:26:02 -0800 Subject: bitbake: Toaster: fix shutdown and extra threads Fix typo in shutdown code to kill threads when "kill -0" is not enough. Use the '--noreload' flag for 'runserver' so that there are no extra and unaccounted threads. [YOCTO #12555] (Bitbake rev: 256990943075e89cb9aee2bc6488344b6783e07b) Signed-off-by: David Reyna Signed-off-by: Richard Purdie --- bitbake/bin/toaster | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake') diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index 4036f0ad58..ed365ee82e 100755 --- a/bitbake/bin/toaster +++ b/bitbake/bin/toaster @@ -68,7 +68,7 @@ webserverKillAll() if [ -f ${pidfile} ]; then pid=`cat ${pidfile}` while kill -0 $pid 2>/dev/null; do - kill -SIGTERM -$pid 2>/dev/null + kill -SIGTERM $pid 2>/dev/null sleep 1 done rm ${pidfile} @@ -91,7 +91,7 @@ webserverStartAll() echo "Starting webserver..." - $MANAGE runserver "$ADDR_PORT" \ + $MANAGE runserver --noreload "$ADDR_PORT" \ >${BUILDDIR}/toaster_web.log 2>&1 \ & echo $! >${BUILDDIR}/.toastermain.pid -- cgit v1.2.3-54-g00ecf