(__fork): Call __pthread_reset_pthread_once.
authordrepper <drepper>
Thu, 23 Mar 2000 22:16:31 +0000 (22:16 +0000)
committerdrepper <drepper>
Thu, 23 Mar 2000 22:16:31 +0000 (22:16 +0000)
linuxthreads/ptfork.c

index 1dfa8b6..4cd883f 100644 (file)
@@ -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 {