vn971 / rua

Build tool for Arch Linux providing control, review and jailed build options
GNU General Public License v3.0
425 stars 42 forks source link

"multiple parallel instances" check is not properly implemented #114

Closed vn971 closed 4 years ago

vn971 commented 4 years ago

Right now, we first create directories like ~/.config/rua/.system with files inside them, and only then try to acquire a unique lock on ~/.config/rua. Instead, it makes much more sense to get the unique lock as early as possible, to avoid concurrent access problems.

Marking as "bug" because it's a very smelly code.