dead records in locking.tdb (was: Locking database cleanup?)

John E. Malmberg wb8tyw at
Mon May 22 13:41:49 GMT 2006

Jeremy Allison wrote:
> Reusing PID's very quickly will break lots of apps, not just
> Samba. Just something else I dislike about the *BSD's....

On OpenVMS, applications running under the native DCL shell run under 
the same process as DCL, so the PID is naturally the same.

And the PIDs of created processes are assigned "randomly" by current 
versions of OpenVMS.  I am not aware of any guarantee of time before re-use.

For OpenVMS, I am planning on looking if the code that currently uses 
the locking.tdb can be converted to use the API to the OpenVMS lock 
manager.  That lock manager will automatically clean up locks of dead 

I expect if that is possible, on OpenVMS, this will give a significant 
performance gain over using the .TDB database, in addition to insuring 
that there are no dead records.

wb8tyw at
Personal Opinion Only

More information about the samba-technical mailing list