[Gambas-user] Locking files - best method
Stefano Palmeri
rospolosco at ...152...
Thu Feb 12 16:45:15 CET 2009
Il giovedì 12 febbraio 2009 08:27:18 Rolf-Werner Eilert ha scritto:
> Good morning, folks :-)
>
> Once upon a time, maybe some weeks or even months ago, we had a
> discussion about how to lock a file for other users while it is written.
>
> My usual way was (and still is) using a xxx.lock file for indication.
>
> Someone on the list pointed me to the danger of overlapping
> file-creation and directory-reading so that in rare cases there would be
> no locking effect. He used locking by creating a lock-directory. After
> some 6 months in use, I have to admit that he was right. Every 6 or 8
> weeks or so, there is a collision with my system.
>
> I can't find these posts in the archives anymore, so please could you
> (whoever it was :-) ) give me your idea of locking by directory again?
>
> Thanks a lot in advance!
>
> Rolf
>
> ---------------------------------------------------------------------------
>--- Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing
> skills and code to build responsive, highly engaging applications that
> combine the power of local resources and data with the reach of the web.
> Download the Adobe AIR SDK and Ajax docs to start building applications
> today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
That discussion is here, more or less:
http://www.nabble.com/commandline-output-redirect--to17365169.html#a19696934
Saluti,
Stefano
More information about the User
mailing list