mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
catch exception
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25722 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ba29406822
commit
69fce99d3e
2 changed files with 16 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-12-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSUserDefaults.m: catch any exception if som eone breaks our
|
||||||
|
lock on the defaults file.
|
||||||
|
|
||||||
2007-12-11 Richard Frith-Macdonald <rfm@gnu.org>
|
2007-12-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSIndexSet.m: Test and debug ([-initWithCoder:])
|
* Source/NSIndexSet.m: Test and debug ([-initWithCoder:])
|
||||||
|
|
|
@ -1456,7 +1456,17 @@ static BOOL isLocked = NO;
|
||||||
|
|
||||||
- (void) unlockDefaultsFile
|
- (void) unlockDefaultsFile
|
||||||
{
|
{
|
||||||
[_fileLock unlock];
|
NS_DURING
|
||||||
|
{
|
||||||
|
[_fileLock unlock];
|
||||||
|
}
|
||||||
|
NS_HANDLER
|
||||||
|
{
|
||||||
|
NSLog(@"Warning ... someone broke our lock (%@) ... and may have"
|
||||||
|
@" interfered with updating defaults data in file.",
|
||||||
|
[_defaultsDatabase stringByAppendingPathExtension: @"lck"]);
|
||||||
|
}
|
||||||
|
NS_ENDHANDLER
|
||||||
isLocked = NO;
|
isLocked = NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue