diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-01-11 19:25:07 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-01-11 19:25:07 +0000 |
commit | 3bbddbe4a37ebd5e015fea42065db59966444224 (patch) | |
tree | 7d9e9a7f89c1bac0b241980aed9cd7de61d26764 /linuxthreads/pthread.c | |
parent | beb5387cf656c281f9cc81d6a04f1085fe534c9a (diff) | |
download | glibc-3bbddbe4a37ebd5e015fea42065db59966444224.tar.gz glibc-3bbddbe4a37ebd5e015fea42065db59966444224.tar.xz glibc-3bbddbe4a37ebd5e015fea42065db59966444224.zip |
Update.
2001-01-11 Ulrich Drepper <drepper@redhat.com> * stdlib/Makefile (routines): Add cxa_on_exit. * stdlib/Versions [libc] (GLIBC_2.2.1): Add __cxa_on_exit. * stdlib/cxa_on_exit.c: New file. * include/stdlib.h: Add prototype for __cxa_on_exit. * stdlib/exit.c: Handle ef_cxa2. * stdlib/exit.h (enum): Add ef_cxa2. (struct exit_function): Add cxa2. * Versions.def [ld]: Add GLIBC_2.2.1.
Diffstat (limited to 'linuxthreads/pthread.c')
-rw-r--r-- | linuxthreads/pthread.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/linuxthreads/pthread.c b/linuxthreads/pthread.c index 836d8a81e1..8221787a30 100644 --- a/linuxthreads/pthread.c +++ b/linuxthreads/pthread.c @@ -435,10 +435,8 @@ static void pthread_initialize(void) /* Do it early so that user-registered atexit functions are called before pthread_exit_process. */ if (__builtin_expect (&__dso_handle != NULL, 1)) - /* The cast is a bit unclean. The function expects two arguments but - we can only pass one. Fortunately this is not a problem since the - second argument of `pthread_exit_process' is simply ignored. */ - __cxa_atexit((void (*) (void *)) pthread_exit_process, NULL, __dso_handle); + __cxa_on_exit((void (*) (void *)) pthread_exit_process, NULL, + __dso_handle); else __on_exit (pthread_exit_process, NULL); /* How many processors. */ |