On 7/20/20 11:58 AM, Doug Nazar wrote: > On 2020-07-20 11:49, Steve Dickson wrote: >> >>> +__attribute__((destructor)) >>> +static int nss_plugin_term(void) >>> +{ >>> + free_local_realms(); >>> + conf_cleanup(); >>> + return 0; >>> +} >>> + >> Just wondering... How is nss_plugin_term() called/used? > > Automatically during dlclose(), see the 'Initialization and finalization functions' section of the man page. I'd originally thought to extend trans_func but didn't see an easy way to extend the api (no size or version field) without breaking any possible out of tree plugins (do they exist?). Interesting... I think I'll add a comment explaining it... No..they do not exist.. The way you are going is fine... Less churn is good ;-) steved.