aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2018-05-28 20:26:58 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-05-29 11:41:32 +0100
commit14079cb1fd497799548c677962d89c02a6d2bf92 (patch)
tree00d8b10d82b9cc46862f04f9b4b63c0a858cc257
parent223a0f68530571d2280f526bddbc718fa803a3dc (diff)
downloadbitbake-14079cb1fd497799548c677962d89c02a6d2bf92.tar.gz
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] Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbin/toaster4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/toaster b/bin/toaster
index 4036f0ad5..ed365ee82 100755
--- a/bin/toaster
+++ b/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" \
</dev/null >>${BUILDDIR}/toaster_web.log 2>&1 \
& echo $! >${BUILDDIR}/.toastermain.pid