Bug #1137
- Fixed bug #1137, which caused file locks to be non-blocking (thanks to Steve Rader).
This commit is contained in:
@@ -74,6 +74,8 @@ Bugs
|
||||
left-justified (thanks to Steve Rader).
|
||||
+ Fixed bug #1136, #1177, which incorrectly line-wrapped tasks with annotations
|
||||
(thanks to Steve Rader, T. Charles Yun).
|
||||
+ Fixed bug #1137, which caused file locks to be non-blocking (thanks to Steve
|
||||
Rader).
|
||||
+ Fixed bug #1150, which referenced deprecated features in the tutorial man
|
||||
page (thanks to Benjamin Weber).
|
||||
+ Fixed bug #1154, which now allows priorities to be specified in any case.
|
||||
|
||||
@@ -538,6 +538,7 @@ void Context::shadow ()
|
||||
" rc.detection:off" + // No need to determine terminal size
|
||||
" rc.color:off" + // Color off by default
|
||||
" rc.gc:off " + // GC off, to reduce headaches
|
||||
" rc.locking:off" + // No file locking
|
||||
" rc:" + rcfile + " " + // Use specified rc file
|
||||
command + // User specified command
|
||||
" >" + // Capture
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user