create a lock file during builds

prevent duplicate main instances of the build
system from running

the lock file is deleted when the parent process
exits, alongside the tmpdir deletion

the build system must only ever be run ot one
instance at a time, per work directory

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2024-06-09 15:37:13 +01:00
parent a0710ef9ca
commit e80c4b73ce
3 changed files with 13 additions and 9 deletions

1
.gitignore vendored
View File

@@ -30,3 +30,4 @@
/src/
/CHANGELOG
/todo.txt
/lock