mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +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
|
@ -35,6 +35,8 @@ Bugs
|
|||
to Michele Vetturi).
|
||||
- TD-45 Fix preprocessor define (thanks to Jochen Sprickerhof).
|
||||
- TW-1282 incorrect URLs in man task-sync (thanks to Jeremiah Marks).
|
||||
- TW-1288 Added missing locking for task modifications (thanks to Kosta H,
|
||||
Ralph Bean, Adam Coddington).
|
||||
- #1511 sync init crashes if client certification file is empty or invalid
|
||||
(thanks to Marton Suranyi).
|
||||
- #1508 Show command highlight configuration (thanks to Nicolas Appriou).
|
||||
|
|
|
@ -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