1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00
2002-12-30  Ulrich Drepper  <drepper@redhat.com>

	* malloc/thread-m.h (thread_atfork): Define using __register_atfork.
This commit is contained in:
Ulrich Drepper
2002-12-31 08:00:19 +00:00
parent 89d6e44459
commit 416d2de60b
23 changed files with 679 additions and 81 deletions

View File

@ -72,8 +72,14 @@ __libc_lock_define (typedef, mutex_t)
#endif
/* This is defined by newer gcc version unique for each module. */
extern void *__dso_handle __attribute__ ((__weak__));
#include <fork.h>
#define thread_atfork(prepare, parent, child) \
(__pthread_atfork != NULL ? __pthread_atfork(prepare, parent, child) : 0)
__register_atfork (prepare, parent, child, \
&__dso_handle == NULL ? NULL : __dso_handle)
#elif defined(MUTEX_INITIALIZER)
/* Assume hurd, with cthreads */