diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-24 22:34:36 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-24 22:37:40 +0200 |
commit | 79e9d2b78ec0747a94731d45e0e5149269e96159 (patch) | |
tree | a68858fc2037b1a8b945c567312f678864c454e1 /pthreadP.h | |
parent | 05babf965ec39be7e1c8a7306ec1c60b1e614654 (diff) |
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.
Diffstat (limited to 'pthreadP.h')
-rw-r--r-- | pthreadP.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 */ |