Diego Nieto Cid, on Sun 06 Mar 2016 21:11:58 -0300, wrote: > 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)
rather
if (&_cthread_init_routine && _cthread_init_routine)
> cthread_getspecific (key, &val);
> return val;
but yes.
Samuel
