[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?
yes, easily - as long as that process has sufficient rights, of course.
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...