[gnome-continuous-yocto/gnomeostree-3.28-rocko: 2318/8267] bitbake: toaster: don't kill all runserver processes
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 2318/8267] bitbake: toaster: don't kill all runserver processes
- Date: Sat, 16 Dec 2017 23:03:44 +0000 (UTC)
commit b22a505414db060b5df0ce3d6c84c5dffd38463e
Author: Ed Bartosh <ed bartosh linux intel com>
Date: Mon Sep 5 15:29:32 2016 +0100
bitbake: toaster: don't kill all runserver processes
Toaster script kills runserver process 2 ways:
- sending signal to pid from .toastermain.pid.
- sending signal to pids found by grepping ps output:
ps fux | grep "python.*manage.py runserver"
Second approach is redundant and harmfull as it kills all django
development server running on the machine.
[YOCTO #7973]
(Bitbake rev: 0f47b17fe88dc660648d94b2d8d8286d87ae6295)
Signed-off-by: Ed Bartosh <ed bartosh linux intel com>
Signed-off-by: Michael Wood <michael g wood intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
bitbake/bin/toaster | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index b14749a..6641dbc 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/bin/toaster
@@ -33,9 +33,6 @@ webserverKillAll()
while kill -0 $pid 2>/dev/null; do
kill -SIGTERM -$pid 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
done
rm ${pidfile}
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]