Even the "mandatory" locks on Windows' aren't infallible when you get into network shared filesystems, especially SMB/Samba connections, because the whole modification stack isn't under one machine's control. You are right: they profess to be mandatory and cause you grief if you ignore them, but they cause you grief anyway when the remote system does unexpected things.
--
[ e d @ h a l l e y . c c ]
In reply to Re^3: Best practices for modifying a file in place: q's about opening files, file locking, and using the rename function
by halley
in thread Best practices for modifying a file in place: q's about opening files, file locking, and using the rename function
by davebaker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |