aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-05-09 03:17:42 +0000
committerUlrich Drepper <drepper@redhat.com>2003-05-09 03:17:42 +0000
commit92d83c725e09dbc76acfedc1cf85a01f9f54452d (patch)
tree039357dd8df0ad0c249d28e098e921ff15fb1eb0 /malloc
parent29b095a1561f866b995b23621d1e2ee78e473dc4 (diff)
downloadglibc-92d83c725e09dbc76acfedc1cf85a01f9f54452d.tar
glibc-92d83c725e09dbc76acfedc1cf85a01f9f54452d.tar.gz
glibc-92d83c725e09dbc76acfedc1cf85a01f9f54452d.tar.bz2
glibc-92d83c725e09dbc76acfedc1cf85a01f9f54452d.zip
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.
Diffstat (limited to 'malloc')
-rw-r--r--malloc/thread-m.h19
1 files changed, 4 insertions, 15 deletions
diff --git a/malloc/thread-m.h b/malloc/thread-m.h
index 71409ebc0e..da8bbf36f8 100644
--- a/malloc/thread-m.h
+++ b/malloc/thread-m.h
@@ -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)