Thanks. Yeah, I figured that out after Martijn's response. I'm just
returning the file descriptor from lockFile, passing it to unlockFile and
closing the descriptor there. It works fine now. Thanks for edifying a
clueless novice such as myself. :-)
> Chris Goughnour <[EMAIL PROTECTED]> writes:
>> Any suggestions? Thanks in advance.
>
> I believe locks are associated with file descriptors (what you're
> miscalling a handle). The unlock function cannot release a lock
> that is held via a different descriptor. What it needs to be doing
> is closing the descriptor that lockFile opened. This would also
> solve the rather serious descriptor-leak problem you've got.
>
> regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html