Re: File locking anomaly under 2.0.30

Alan Cox (
Thu, 24 Jul 1997 19:54:04 +0100 (BST)

> 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. :-/
> This patch needs to go in 2.0.31 _and_ 2.1.whatever.

I think its so obscure and changing core code that might burn others - we've
had fascinating lock/unlock bugs in 2.0.14-18 for example that unless you
can cite a POSIX.1/POSIX.4 reference on this it shouldnt be fixed in 2.0.x

To start with there may be other people relying on the existing behaviour
to wait for all threads of a task to exit...