Andrew Chernow <ac@esilo.com> writes:
> Be careful. From LockFileEx docs:
> "However, the time it takes for the operating system to unlock these
> locks depends upon available system resources. Therefore, it is
> recommended that your process explicitly unlock all files it has locked
> when it terminates. If this is not done, access to these files may be
> denied if the operating system has not yet unlocked them."
ROTFL ... so to translate: "If your program crashes, please release
locks before crashing."
No wonder Windows has such a crummy reputation.
regards, tom lane