-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add file locking #12
Comments
If I have spare time this week, I can try to add file locking with https://docs.rs/fs2/0.4.3/fs2/trait.FileExt.html. I need a tool for tracking the work on my bachelor thesis. |
As per the flock man page,
I believe the file locking with this trait won't work in this case because the program writes the status into |
Do it really need some file locking mechanism with the filesystem already enforcing exclusive write access to the file while executing multiple instances? Or is this issue about a wait until unlocked and then get the lock? |
Apologies, I was too soon to say that. As I ran multiple tasks manually, I realised that when a job is already in progress and another job is created, it gets appended to the |
Currently there is no file locking.
Running several
rtw
commands may lead to undefined behavior.The text was updated successfully, but these errors were encountered: