diff options
Diffstat (limited to 'linuxthreads/pthread.c')
-rw-r--r-- | linuxthreads/pthread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linuxthreads/pthread.c b/linuxthreads/pthread.c index 57bc15e..ce26f05 100644 --- a/linuxthreads/pthread.c +++ b/linuxthreads/pthread.c @@ -389,13 +389,13 @@ static void pthread_initialize(void) /* Register an exit function to kill all other threads. */ /* Do it early so that user-registered atexit functions are called before pthread_exit_process. */ - if (__dso_handle) + if (&__dso_handle != NULL) /* 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); else - on_exit (pthread_exit_process, NULL); + __on_exit (pthread_exit_process, NULL); } void __pthread_initialize(void) |