[oe-commits] [bitbake] 17/18: toaster: don't kill all runserver processes
git at git.openembedded.org
git at git.openembedded.org
Tue Sep 6 09:37:52 UTC 2016
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit 0f47b17fe88dc660648d94b2d8d8286d87ae6295
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Mon Sep 5 15:29:32 2016 +0100
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]
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
Signed-off-by: Michael Wood <michael.g.wood at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
bin/toaster | 3 ---
1 file changed, 3 deletions(-)
diff --git a/bin/toaster b/bin/toaster
index b14749a..6641dbc 100755
--- a/bin/toaster
+++ b/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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list