From 79e9d2b78ec0747a94731d45e0e5149269e96159 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 24 Oct 2016 22:34:36 +0200 Subject: Do not pthread_self when raise is called before libpthread init * Versions (__pthread_threads): Add in GLIBC_PRIVATE. * pthreadP.h (__pthread_threads): Declare. * sysdeps/generic/raise.c (__pthread_threads): Make symbol weak. (raise): Check for __pthread_threads before calling __pthread_self. --- pthreadP.h | 1 + 1 file changed, 1 insertion(+) (limited to 'pthreadP.h') diff --git a/pthreadP.h b/pthreadP.h index f1fd625..97e3028 100644 --- a/pthreadP.h +++ b/pthreadP.h @@ -22,5 +22,6 @@ extern pthread_t __pthread_self (void); extern int __pthread_kill (pthread_t threadid, int signo); +extern struct __pthread **__pthread_threads; #endif /* pthreadP.h */ -- cgit v1.2.3