From 999e980ee1a58d16f33ef6c0e41aecdcd0206f39 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Thu, 24 Nov 2016 11:19:52 +0000 Subject: toaster: runbuilds Write the pidfile in python rather than shell script Write the pid file out in the start up of this management command. This ensures this has happened instead of relying on the shell command having been run which may or may not be the case. This also makes it simpler for testing. Couple of clean ups of runbuilds as identified by pyflake Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- bin/toaster | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/toaster b/bin/toaster index f92d38eca..e0aac1a7b 100755 --- a/bin/toaster +++ b/bin/toaster @@ -254,7 +254,7 @@ case $CMD in return 4 fi export BITBAKE_UI='toasterui' - $MANAGE runbuilds & echo $! >${BUILDDIR}/.runbuilds.pid + $MANAGE runbuilds & # set fail safe stop system on terminal exit trap stop_system SIGHUP echo "Successful ${CMD}." -- cgit 1.2.3-korg