Changes

Jump to: navigation, search

NSS Shared DB And LINUX

377 bytes added, 09:13, 25 February 2009
Issues to be resolved: this is still unworkable
* How does a library know if it is the first caller of NSS? Does it need to know?
** [ There is already a call to tell if NSS is already initialized. I don't think knowing that info, however, solves all the problems. The primary problem it doesn't solve is how to deal with shutdown. It probably solves the 97% case, which is bad because we may not trip over the 3% case until someone makes it a firedrill. ]
*** This is the approach I've taken with OpenLDAP libldap - if NSS was already initialized when we started, we will not call NSS_Shutdown when we're torn down. If whoever initialized NSS doesn't clean up properly, it's not our fault and there's nothing we can do to help the situation. But obviously that means setup and teardown have to occur in the correct order in the app.
= Other comments =
12
edits

Navigation menu