aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/ptfork.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-05-08 00:03:03 +0000
committerUlrich Drepper <drepper@redhat.com>2000-05-08 00:03:03 +0000
commit93414bb97c8d4af09fbc6ed493e5c904f27a5173 (patch)
treeacc768bf3ed48a4cc8df3e31b97e63c42d5b13a3 /linuxthreads/ptfork.c
parent639c6286de5391c9accf0ecb9f944efe7ed980b8 (diff)
downloadglibc-93414bb97c8d4af09fbc6ed493e5c904f27a5173.tar
glibc-93414bb97c8d4af09fbc6ed493e5c904f27a5173.tar.gz
glibc-93414bb97c8d4af09fbc6ed493e5c904f27a5173.tar.bz2
glibc-93414bb97c8d4af09fbc6ed493e5c904f27a5173.zip
Update.
2000-05-07 H.J. Lu <hjl@gnu.org> * csu/initfini.c: Moved to .... * sysdeps/generic/initfini.c: ...here. * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
Diffstat (limited to 'linuxthreads/ptfork.c')
-rw-r--r--linuxthreads/ptfork.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linuxthreads/ptfork.c b/linuxthreads/ptfork.c
index 4cd883fd23..cb6d46db8c 100644
--- a/linuxthreads/ptfork.c
+++ b/linuxthreads/ptfork.c
@@ -86,14 +86,16 @@ pid_t __fork(void)
parent = pthread_atfork_parent;
pthread_mutex_unlock(&pthread_atfork_lock);
pthread_call_handlers(prepare);
+ __pthread_once_fork_prepare();
pid = __libc_fork();
if (pid == 0) {
__pthread_reset_main_thread();
- __pthread_reset_pthread_once();
__fresetlockfiles();
pthread_call_handlers(child);
+ __pthread_once_fork_child();
} else {
pthread_call_handlers(parent);
+ __pthread_once_fork_parent();
}
return pid;
}