Current time: 11-25-2024, 11:55 AM Hello There, Guest! (LoginRegister)


Post Reply 
Lock file not removed
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: Lock file not removed
Quote:Or now I can simply create the entries all the time?
No, you can't.

Quote:If you are keeping the lock all the time, what's the recommended way of either lock or know that the system is working.
The software uses "flock" on this file now. Basically, you first have to open the file and then call "flock(filehandle, LOCK_EX)" to obtain an exclusive lock on it. Read the "flock" documentation, where you'll see examples of both blocking (what the engine uses, to wait until it can operate) and non-blocking calls (maybe you want to use this, so if you can't get the lock immediately an error is returned to the user).

My commit message regarding the changes gives further insights on the issue if you're interested.
09-09-2009 01:20 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Lock file not removed - aseques - 09-08-2009, 10:55 PM
RE: Lock file not removed - kilburn - 09-08-2009, 11:08 PM
RE: Lock file not removed - aseques - 09-09-2009, 12:30 AM
RE: Lock file not removed - kilburn - 09-09-2009 01:20 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)