• unknown's avatar
    Bug #27964: pthread_key_create doesn't set errno, so don't report \ · 0732ad9a
    unknown authored
    	errno
    
    Vasil Dimov (at Oracle) noted that pthread_key_create() does not
    set errno, so if it fails then we return the wrong error code.
    
    Instead, capture the return value, which is the real error value, 
    and instead report that.
    
    
    mysys/my_thr_init.c:
      pthread functions don't set the global errno, which should be
      obvious.
    0732ad9a
my_thr_init.c 11.2 KB