[Toaster] [PATCH v2 3/3] toaster: don't kill all runserver processes

Ed Bartosh ed.bartosh at linux.intel.com
Wed Aug 31 04:54:19 PDT 2016


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>
---
 bitbake/bin/toaster | 3 ---
 1 file changed, 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
-- 
2.6.6



More information about the toaster mailing list