[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#7364) mdb: clean up POSIX semaphores on environment close.

cmikk@qwest.net writes:
> The patch at:
> http://mikk.net/~chris/patches/0002-Remove-POSIX-semaphores-when-the-last-user-closes-th.patch
> Attempts to upgrade the lockfile lock to exclusive when closing the environment.
> If that upgrade succeeds, it removes the semaphores.

That won't help if the mdb proccess crashes.  Sounds like mdb needs some
cleanup API calls.  Maybe one which does the same as your patch after
opening the environment - except it does not create any files, and fails
if the exclusive lock fails.