diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-14 13:35:08 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-14 14:33:00 +0000 |
| commit | 11698e027d71967153b272bf34996bee8f3908e5 (patch) | |
| tree | b395b1cb5f167d9c7d190bd13a1d33b670572a3b /meta | |
| parent | bd1edfa3d5b1c24cd1192620f7085ee1df03e1af (diff) | |
| download | poky-11698e027d71967153b272bf34996bee8f3908e5.tar.gz | |
bitbake: server/process: Improve lockfile handling at exit
If memory resident bitbake is active and the build directory is renamed upon
build completion, several bad things can happen:
* the old build directory could be re-created to contain a lockfile
leaving an empty directory behind
* a lockfile for a new build could be found and attempt to be locked
This patch avoids creating an empty directory (not perfectly, but should
work in the majority of cases - an empty directory is cosmetic).
It also now compares the lock file contents to it's own pid and
just exits if it doesn't match, it is clearly then belonging to some
new process.
This will be combined with bitbake shutdown calls on the autobuilder to
ensure "saved" build directories, or build directories being deleted by
clobberdir don't do strange things.
(Bitbake rev: b986eac18b6a8bf633f5ef15f32f68de4c86173b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
0 files changed, 0 insertions, 0 deletions
