Skip to contentSkip to conversation

bitbake.lock?

DISCUSSION Gary Thomas 3 participants 3 messages Jan 23, 2012

lore
Share & tools
lore
#0 lore raw

I've noticed that recent versions of bitbake leave this file in the build directory.

What is it for & why is it left around?

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw
Quoted 4 lines · Gary Thomas

I've noticed that recent versions of bitbake leave this file in the build directory.

What is it for & why is it left around?

It's used to ensure only one bitbake runs against a given build directory at a time. I'm not sure why it's left around, it seems like some of the ways in which bitbake exits don't result in a cleanup. I'm sure Richard would know for sure.

Just as an FYI, it does check the pid stored there against the running processes, so if it errors out indicating there's a second bitbake running, there really is, even if you don't know it. Could have a remnant process from a previous build, depending on how it exited, I've noticed. Particularly hitting the parse error hang issue can result in remnant processes hanging around monopolizing the build dir. kill is our friend in those cases. I just wanted to note this to ensure that no one physically removes the .lock when encountering the error.

Signature · 1 line
Christopher Larson