mallon@hsi.UUCP (Dan Mallon) (12/15/89)
A project I am working on ports to many different environments. Among these
are 3Com and Novell. One of the newest features I am adding involves locking
files. I've implemented this using the locking() function from the MSDOS
library. I cannot fully test the additions out yet, as I don't have access
to 3Com and Novell environments on site. Since I also lack information about
the systems, I was hoping someone could answer a question I have.
If two users are accessing the same file by locking, writing, locking, writing,
etc., what would happen if one user crashed for some reason before she/he
unlocked the file? Would the system recognize a crash and free the lock or
would the second user be locked out permanently?
Any help would be greatly appreciated.
Please respond via email, as I don't subscribe to this newsgroup. Thank you.
--
Dan Mallon mallon@hsi.com
Health Systems International {uunet,yale}!hsi!mallon jrc@hpdml93.HP.COM (Jim Conrad) (12/21/89)
The Microsoft server will close (and, in the process, unlock) files if the underlying transport notifies the server when connections fail. Jim Conrad jrc@hpbsrl