El 6 mar 2016, a las 20:07, Samuel Thibault <samuel.thiba...@gnu.org> escribió:
>
>__libc_getspecific is not a weak symbol, 
>keep it as it is, calling 
>cthread_getspecific.

Oh, yes that's right. I didn't notice the attribute came from a Debian patch 
meant to be dropped.

The problem with the function as it is, is that by calling cthread_getspecific 
it forces dlerror to clobber errno; and then the console client is in trouble.

May I do as below?

   void *val = NULL;
   if ( _cthread_init_routine)
     cthread_getspecific (key, &val);
   return val;

Thanks,
Diego

Reply via email to