mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 00:57:19 +02:00
Bug TW-1288
- TW-1288 Added missing locking for task modifications (thanks to Kosta H, Ralph Bean, Adam Coddington).
This commit is contained in:
parent
4ae8431f96
commit
d52eebaa66
2 changed files with 5 additions and 0 deletions
|
@ -233,6 +233,9 @@ void TF2::commit ()
|
|||
{
|
||||
if (_file.open ())
|
||||
{
|
||||
if (context.config.getBoolean ("locking"))
|
||||
_file.waitForLock ();
|
||||
|
||||
// Truncate the file and rewrite.
|
||||
_file.truncate ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue