summaryrefslogtreecommitdiff
path: root/Versions
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-21 23:35:41 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-21 23:35:41 +0200
commit1b99b0ffaf09cd7500c9390704ed56be47882d70 (patch)
treec69f642091ef58854e492f492a521e841eb6b4b3 /Versions
parentff1ae3d79b2d103f211ad4c600e144ad448a98e6 (diff)
Add pthread_atfork support
* Versions (libc): Add __register_atfork with GLIBC_PRIVATE version. * forward.c: Include <errno.h> (atfork): New structure. (atfork_lock): New mutex. (fork_handlers, fork_last_handler): New variables. (atfork_pthread_prepare, atfork_pthread_parent, atfork_pthread_child): New atfork hooks (__register_atfork): New function. * sysdeps/generic/pt-atfork.c (pthread_atfork): Call __register_atfork.
Diffstat (limited to 'Versions')
-rw-r--r--Versions1
1 files changed, 1 insertions, 0 deletions
diff --git a/Versions b/Versions
index 3d151cf..41bff96 100644
--- a/Versions
+++ b/Versions
@@ -18,6 +18,7 @@ libc {
__pthread_get_cleanup_stack;
GLIBC_PRIVATE {
__libc_pthread_init;
+ __register_atfork;
}
}