mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-27 19:22:00 +03:00
Update.
2003-09-17 Jakub Jelinek <jakub@redhat.com> * pthread.c (manager_thread): Remove static, add attribute_hidden. (thread_self_stack): Rename to... (__pthread_self_stack): ... this. Remove static. (pthread_handle_sigcancel): Use check_thread_self (). (pthread_handle_sigrestart): Likewise. * sighandler.c (__pthread_sighandler, __pthread_sighandler_rt): Likewise. * descr.h (manager_thread): Declare. * internals.h (__pthread_self_stack): New prototype. (__manager_thread): Define. (check_thread_self): New function.
This commit is contained in:
@@ -22,7 +22,8 @@ void __pthread_sighandler(int signo, SIGCONTEXT ctx)
|
||||
{
|
||||
pthread_descr self;
|
||||
char * in_sighandler;
|
||||
self = thread_self();
|
||||
self = check_thread_self();
|
||||
|
||||
/* If we're in a sigwait operation, just record the signal received
|
||||
and return without calling the user's handler */
|
||||
if (THREAD_GETMEM(self, p_sigwaiting)) {
|
||||
@@ -46,7 +47,8 @@ void __pthread_sighandler_rt(int signo, struct siginfo *si,
|
||||
{
|
||||
pthread_descr self;
|
||||
char * in_sighandler;
|
||||
self = thread_self();
|
||||
self = check_thread_self();
|
||||
|
||||
/* If we're in a sigwait operation, just record the signal received
|
||||
and return without calling the user's handler */
|
||||
if (THREAD_GETMEM(self, p_sigwaiting)) {
|
||||
|
Reference in New Issue
Block a user