aboutsummaryrefslogtreecommitdiff
path: root/posix/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/fork.c')
-rw-r--r--posix/fork.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/posix/fork.c b/posix/fork.c
index c471f7b..021691b 100644
--- a/posix/fork.c
+++ b/posix/fork.c
@@ -99,6 +99,9 @@ __libc_fork (void)
/* Reset the lock the dynamic loader uses to protect its data. */
__rtld_lock_initialize (GL(dl_load_lock));
+ /* Reset the lock protecting dynamic TLS related data. */
+ __rtld_lock_initialize (GL(dl_load_tls_lock));
+
reclaim_stacks ();
/* Run the handlers registered for the child. */