Ack! I just realized this doesn't work:
var lockFile = new
FileStream("myfile.lock",FileMode.OpenOrCreate,FileAccess.ReadWrite,FileShare.None);
Particularly, if more than one application attempts to get an exclusive lock on
that file at the same time (FileShare.None), then both applications simply
succeed. There is no exclusivity.
Is there some way to get file access exclusivity?
(I care about both Mac & Linux, but right now I'm observing this on Linux)
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list