diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-21 23:35:41 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-21 23:35:41 +0200 |
commit | 1b99b0ffaf09cd7500c9390704ed56be47882d70 (patch) | |
tree | c69f642091ef58854e492f492a521e841eb6b4b3 /pthread/pt-alloc.c | |
parent | ff1ae3d79b2d103f211ad4c600e144ad448a98e6 (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 'pthread/pt-alloc.c')
0 files changed, 0 insertions, 0 deletions