mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-02 16:01:20 +03:00
Update.
2003-05-08 Ulrich Drepper <drepper@redhat.com> * malloc/thread-m.h: Remove special handling of thread_atfork if HAVE_register_atfork_malloc is defined.
This commit is contained in:
@@ -77,24 +77,13 @@ extern void *__dso_handle __attribute__ ((__weak__));
|
||||
|
||||
#include <fork.h>
|
||||
|
||||
#ifdef HAVE_register_atfork_malloc
|
||||
# ifdef SHARED
|
||||
# define thread_atfork(prepare, parent, child) \
|
||||
__register_atfork_malloc (prepare, parent, child, __dso_handle)
|
||||
# else
|
||||
# define thread_atfork(prepare, parent, child) \
|
||||
__register_atfork_malloc (prepare, parent, child, \
|
||||
&__dso_handle == NULL ? NULL : __dso_handle)
|
||||
# endif
|
||||
#else
|
||||
# ifdef SHARED
|
||||
# define thread_atfork(prepare, parent, child) \
|
||||
#ifdef SHARED
|
||||
# define thread_atfork(prepare, parent, child) \
|
||||
__register_atfork (prepare, parent, child, __dso_handle)
|
||||
# else
|
||||
# define thread_atfork(prepare, parent, child) \
|
||||
#else
|
||||
# define thread_atfork(prepare, parent, child) \
|
||||
__register_atfork (prepare, parent, child, \
|
||||
&__dso_handle == NULL ? NULL : __dso_handle)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#elif defined(MUTEX_INITIALIZER)
|
||||
|
Reference in New Issue
Block a user