discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Significance of .GNUstepUDlock


From: Richard Frith-Macdonald
Subject: Re: Significance of .GNUstepUDlock
Date: Mon, 31 Dec 2001 18:23:50 +0000

On Monday, December 31, 2001, at 06:10 PM, Richard Frith-Macdonald wrote:


On Monday, December 31, 2001, at 01:24 PM, Ravindra wrote:

What is the purpose of this file and whether there is any way to stop it from being created. If file is required to be created is it possible to by pass this file access, so that other instances of the application work free.

It's a lock file to protect defaults data while it is being updated. I'm not sure it is actually necessary in the current implementation though. If it ever fails to be removed (other than because your program crashes), that's a bug and it would be nice to get a reproducable test program in order to fix it. I have never seen a
copy of it left over except when a crash occurs.

As I think the file is not necessary (we can use writeToFile:atomically: to update the on-disk defaults database in a safe manner), I'll probably update NSUserDefaults to dispense with the lock file.
Unless anyone knows a good reason why I shouldn't ....




reply via email to

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