Lock a file to avoid updating a same progress multiple time #7
Labels
bug
Something isn't working
next major version
will be released in the next major version release of the crate
This could happen if the user use mendo multiple times in short session, it would spawn multiple
mendo
instances which will attempt to update the same progress.The solution is to use something like fd-lock to lock the log file and unlock it when the update process is finished. This way the other process which spawned later will block until it can acquires the log file lock and then start its process.
The text was updated successfully, but these errors were encountered: