summaryrefslogtreecommitdiff
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-10 21:49:12 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-12 14:41:32 +0100
commit36e81a844b53fed949bcf8cfc37d220c2d078a03 (patch)
tree33363cf750a2f1e4957b9052cc6979b18e3f6a5e /bitbake/lib
parente4c1c8c92e4f47b69a9d7dcccb32ee3bb1ad7d18 (diff)
downloadopenembedded-core-36e81a844b53fed949bcf8cfc37d220c2d078a03.tar.gz
openembedded-core-36e81a844b53fed949bcf8cfc37d220c2d078a03.tar.bz2
openembedded-core-36e81a844b53fed949bcf8cfc37d220c2d078a03.zip
bitbake/cooker: Make sure no locks are held before we start forking workers
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/cooker.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index ad1d6023fd..3f6f6ef0b6 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -664,6 +664,9 @@ class BBCooker:
buildname = bb.data.getVar("BUILDNAME", self.configuration.data)
bb.event.fire(bb.event.BuildStarted(buildname, [item]), self.configuration.event_data)
+ # Clear locks
+ bb.fetch.persistent_database_connection = {}
+
# Execute the runqueue
runlist = [[item, "do_%s" % task]]
@@ -742,6 +745,9 @@ class BBCooker:
runlist.append([k, "do_%s" % task])
taskdata.add_unresolved(localdata, self.status)
+ # Clear locks
+ bb.fetch.persistent_database_connection = {}
+
rq = bb.runqueue.RunQueue(self, self.configuration.data, self.status, taskdata, runlist)
self.server.register_idle_function(buildTargetsIdle, rq)