aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/ptfork.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/ptfork.c')
-rw-r--r--linuxthreads/ptfork.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linuxthreads/ptfork.c b/linuxthreads/ptfork.c
index 440d66c4a3..deb347fe29 100644
--- a/linuxthreads/ptfork.c
+++ b/linuxthreads/ptfork.c
@@ -83,6 +83,7 @@ pid_t __fork(void)
pthread_call_handlers(pthread_atfork_prepare);
__pthread_once_fork_prepare();
+ __flockfilelist();
pid = __libc_fork();
@@ -95,6 +96,7 @@ pid_t __fork(void)
pthread_mutex_init(&pthread_atfork_lock, NULL);
} else {
+ __funlockfilelist();
__pthread_once_fork_parent();
pthread_call_handlers(pthread_atfork_parent);