discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Defaults being destroyed


From: Alexey I. Froloff
Subject: Re: Defaults being destroyed
Date: Tue, 27 Aug 2002 11:05:56 +0400
User-agent: Mutt/1.4i

On Tue, Aug 27, 2002 at 07:15:07AM +0100, Stefan Urbanek wrote:
[/dev/null]
> It seems, that if a program does not see some domain in
> database at program startup, it will not write it back. It
> may be a problem in -[NSUserDefaults synchronize] I think,
> but I am not sure.
-[NSUserDefaults synchronize] uses NSLock than works between
threads but not processes. Writinig defaults database is not
atomic operation.

I think solution can be in using NSDistributedLock, but
timeout is needed in case some program dies when writing this
file...

-- 
Regards, Sir Raorn.
AIF5-RIPN, AIF5-RIPE, Binec System Administrator.

Attachment: pgpgZGDiZNiTq.pgp
Description: PGP signature


reply via email to

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