discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUstepDefaults.lck


From: Richard Frith-Macdonald
Subject: Re: GNUstepDefaults.lck
Date: Sat, 12 Jun 2004 19:06:43 +0100


On 12 Jun 2004, at 18:11, Manuel Guesdon wrote:

Hi,

I run multiple instance of same (gsweb) application under same user id. and I often have
this exception:
NSGenericException REASON:lock '/PathToUserHome/GNUstep/Defaults/.GNUstepDefaults.lck'
        already  broken

As far as I can see, it's generated by NSDistributedLock called by NSUserDefaults

Do you know how this can occur and how one could avoid this.

It occurs if two processes try to break the lock at the same time ... I've never seen it happen. The user defaults system should only be trying to break the lock if it is at least 5 seconds old. The lock should not get to be five seconds old unless it takes over five seconds to read or write the user default file. If your apps don't use defaults, that sounds like the read is taking
over 5 seconds, which suggests a horribly overloaded system.
Alternatively, there may be some bug in there that your application is triggering somehow.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]