[patch] Fix dlclose / exit running in parallel resulting in dtor being called twice

Paul Pluzhnikov ppluzhnikov@google.com
Wed Feb 6 15:41:00 GMT 2019


On Wed, Feb 6, 2019 at 7:28 AM Florian Weimer <fweimer@redhat.com> wrote:

> > I think it may matter for dlsym, where you need to look dlerror to tell
> > if the symbol was NULL, or there was an actual error.  But you would
> > have to clear dlerror *before* dlsym anyway, in case something else had
> > called dlsym without clearing the error.
>
> In other words, something like this.

The patch looks good to me.

Thanks!
-- 
Paul Pluzhnikov



More information about the Libc-alpha mailing list