mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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 <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
2f110a55dc
commit
844314844e
+2
-2
@@ -68,7 +68,7 @@ webserverKillAll()
|
|||||||
if [ -f ${pidfile} ]; then
|
if [ -f ${pidfile} ]; then
|
||||||
pid=`cat ${pidfile}`
|
pid=`cat ${pidfile}`
|
||||||
while kill -0 $pid 2>/dev/null; do
|
while kill -0 $pid 2>/dev/null; do
|
||||||
kill -SIGTERM -$pid 2>/dev/null
|
kill -SIGTERM $pid 2>/dev/null
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
rm ${pidfile}
|
rm ${pidfile}
|
||||||
@@ -91,7 +91,7 @@ webserverStartAll()
|
|||||||
|
|
||||||
echo "Starting webserver..."
|
echo "Starting webserver..."
|
||||||
|
|
||||||
$MANAGE runserver "$ADDR_PORT" \
|
$MANAGE runserver --noreload "$ADDR_PORT" \
|
||||||
</dev/null >>${BUILDDIR}/toaster_web.log 2>&1 \
|
</dev/null >>${BUILDDIR}/toaster_web.log 2>&1 \
|
||||||
& echo $! >${BUILDDIR}/.toastermain.pid
|
& echo $! >${BUILDDIR}/.toastermain.pid
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user