(__fork): Call __pthread_reset_pthread_once.

This commit is contained in:
Ulrich Drepper 2000-03-23 22:20:04 +00:00
parent 107d073a3f
commit f24b033fda

View 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 {