Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Multiuser database

From: kpeters-vu:ware at: 20-Mar-2006 16:12

>> > OK, I don't understand what you mean. So please, when I open %some- > file.lock, can another process delete it or not? > > -pekr-
Pekr ~ yes, easily - as long as that process has sufficient rights, of course. Try this: Open two shell windows on a Unix box: In shell 1 create a file with your favorite editor, save it and keep it open. In shell 2 delete this file and follow this with an ls command - you won't see the file anymore. If you save it again in shell 1 (and it should tell you that it's writing a new file!) and do another ls in shell 2 it will be there again. So semaphores are the better way... Regards, Kai