mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
2002-12-31 Ulrich Drepper <drepper@redhat.com> * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle is available. * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
This commit is contained in:
@ -77,9 +77,14 @@ extern void *__dso_handle __attribute__ ((__weak__));
|
||||
|
||||
#include <fork.h>
|
||||
|
||||
#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) \
|
||||
__register_atfork (prepare, parent, child, \
|
||||
&__dso_handle == NULL ? NULL : __dso_handle)
|
||||
#endif
|
||||
|
||||
#elif defined(MUTEX_INITIALIZER)
|
||||
/* Assume hurd, with cthreads */
|
||||
|
Reference in New Issue
Block a user