mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 00:57:19 +02:00
Bug #1137
- Fixed bug #1137, which caused file locks to be non-blocking (thanks to Steve Rader).
This commit is contained in:
parent
adacb96581
commit
2be52e1be2
3 changed files with 5 additions and 2 deletions
|
@ -210,7 +210,7 @@ void TF2::commit ()
|
|||
if (_file.open ())
|
||||
{
|
||||
if (context.config.getBoolean ("locking"))
|
||||
_file.lock ();
|
||||
_file.waitForLock ();
|
||||
|
||||
// Write out all the added tasks.
|
||||
std::vector <Task>::iterator task;
|
||||
|
@ -333,7 +333,7 @@ void TF2::load_lines ()
|
|||
if (_file.open ())
|
||||
{
|
||||
if (context.config.getBoolean ("locking"))
|
||||
_file.lock ();
|
||||
_file.waitForLock ();
|
||||
|
||||
_file.read (_lines);
|
||||
_loaded_lines = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue