From: Ulrich Drepper Date: Tue, 21 Mar 2000 21:10:23 +0000 (+0000) Subject: (pthread_initialize): Test for address of __dso_handle being NULL, not value. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=280574e05597f9d1eea70464cd7e15e3dd64680f;p=thirdparty%2Fglibc.git (pthread_initialize): Test for address of __dso_handle being NULL, not value. Use __on_exit, not on_exti. --- diff --git a/linuxthreads/pthread.c b/linuxthreads/pthread.c index 6a6d915d18f..0d2861831ad 100644 --- a/linuxthreads/pthread.c +++ b/linuxthreads/pthread.c @@ -372,13 +372,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)