htl: Fix registration of atfork handlers in modules
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 7 Jun 2020 23:29:44 +0000 (23:29 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 7 Jun 2020 23:36:42 +0000 (23:36 +0000)
commit15e995a8fb94a00d76da03756579ae6ff645b161
tree3b0a1b40074b32203ec10a792db0ad0f289627b3
parentaf27fabe405c757d372b106c8aa383a386a4a79e
htl: Fix registration of atfork handlers in modules

We really need modules to use their own pthread_atfork so that
__dso_handle properly identifies them.

* sysdeps/htl/pt-atfork.c (__pthread_atfork): Hide function.
(pthread_atfork): Hide alias.
* sysdeps/htl/old_pt-atfork.c (pthread_atfork): Rename macro to
__pthread_atfork to fix building the compatibility alias.
sysdeps/htl/old_pt-atfork.c
sysdeps/htl/pt-atfork.c