discuss-gnustep
[Top][All Lists]
Advanced

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

Re[2]: GNUstepDefaults.lck


From: Manuel Guesdon
Subject: Re[2]: GNUstepDefaults.lck
Date: Sun, 27 Jun 2004 16:25:54 +0200 (CEST)

Hi,

 >| 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.

Thnak you.

I think it's related to system overload. Anyway, won't it be possible to
 control  .GNUstepDefaults writing (and locking) deactivation by some 
flag ?

Manuel






reply via email to

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