2000-08-25 Ulrich Drepper <drepper@redhat.com>
+ * elf/dl-close.c (_dl_close): Don't run destructors of objects
+ marked DF_1_NODELETE.
+
* sysdeps/posix/system.c (__libc_system): We cannot use vfork here
since we call sigaction in the child.
struct link_map *imap = map->l_initfini[i];
if (imap->l_opencount == 1 && imap->l_type == lt_loaded
&& (imap->l_info[DT_FINI] || imap->l_info[DT_FINI_ARRAY])
+ && ! (list[i]->l_flags_1 & DF_1_NODELETE)
/* Skip any half-cooked objects that were never initialized. */
&& imap->l_init_called)
{
2000-08-25 Ulrich Drepper <drepper@redhat.com>
+ * pthread.c (pthread_exit_process): Move thread_self us inside `if'.
+
* sysdeps/pthread/pthread.h
(PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Defined.
(PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP: Defined.
+
/* Linuxthreads - a simple clone()-based implementation of Posix */
/* threads for Linux. */
/* Copyright (C) 1996 Xavier Leroy (Xavier.Leroy@inria.fr) */
static void pthread_exit_process(int retcode, void *arg)
{
- struct pthread_request request;
- pthread_descr self = thread_self();
-
if (__builtin_expect (__pthread_manager_request, 0) >= 0) {
+ struct pthread_request request;
+ pthread_descr self = thread_self();
+
request.req_thread = self;
request.req_kind = REQ_PROCESS_EXIT;
request.req_args.exit.code = retcode;