aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/ptfork.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/ptfork.c')
-rw-r--r--linuxthreads/ptfork.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linuxthreads/ptfork.c b/linuxthreads/ptfork.c
index 1dfa8b6ab7..4cd883fd23 100644
--- a/linuxthreads/ptfork.c
+++ b/linuxthreads/ptfork.c
@@ -89,6 +89,7 @@ pid_t __fork(void)
pid = __libc_fork();
if (pid == 0) {
__pthread_reset_main_thread();
+ __pthread_reset_pthread_once();
__fresetlockfiles();
pthread_call_handlers(child);
} else {