Re: File locking anomaly under 2.0.30

Matthias Urlichs (
24 Jul 1997 14:58:25 +0200

I wrote:
> I'm trying to install mysql, an SQL database which uses threading and
> fcntl-style file locks.
> Apparently, POSIX locks are not released when a thread dies because all the
> files are still open from other threads -- but that doesn't help. :-/
Note: the dead thread which held that lock should of course have released
its locks before dying. Apparently, it didn't. Why it didn't is a very good
question, but since threads seem to be untraceable under 2.0.30 I don't
even know how to start figuring this out.

mysql does include a threaded version of Fred Fish's dbug package and makes
heavy use of it, but wading through a few tons of debugging messages is not
my kind of preferred evening entertainment at the moment. :-(