summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-11-24 11:19:52 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-11-30 15:48:09 +0000
commit310a9e5d3564e9b07bb32e3d7b3cc94e32421968 (patch)
tree780ba1c0d7e5e937502498559e6291dc57911714 /bitbake/bin
parentddaac5e4e3ebe71cb279a33a6585b3e8a8790e55 (diff)
downloadpoky-310a9e5d3564e9b07bb32e3d7b3cc94e32421968.tar.gz
bitbake: 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 (Bitbake rev: 999e980ee1a58d16f33ef6c0e41aecdcd0206f39) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/toaster2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index f92d38ecab..e0aac1a7bb 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/bin/toaster
@@ -254,7 +254,7 @@ case $CMD in
254 return 4 254 return 4
255 fi 255 fi
256 export BITBAKE_UI='toasterui' 256 export BITBAKE_UI='toasterui'
257 $MANAGE runbuilds & echo $! >${BUILDDIR}/.runbuilds.pid 257 $MANAGE runbuilds &
258 # set fail safe stop system on terminal exit 258 # set fail safe stop system on terminal exit
259 trap stop_system SIGHUP 259 trap stop_system SIGHUP
260 echo "Successful ${CMD}." 260 echo "Successful ${CMD}."