From 93414bb97c8d4af09fbc6ed493e5c904f27a5173 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 8 May 2000 00:03:03 +0000 Subject: Update. 2000-05-07 H.J. Lu * csu/initfini.c: Moved to .... * sysdeps/generic/initfini.c: ...here. * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs). --- linuxthreads/ptfork.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'linuxthreads/ptfork.c') 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; } -- cgit v1.2.3