about summary refs log tree commit diff
path: root/linuxthreads/mutex.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-03-23 22:16:37 +0000
committerUlrich Drepper <drepper@redhat.com>2000-03-23 22:16:37 +0000
commit383052e98ce628ba1d5046ba663a8b70271e3eb8 (patch)
tree46ba6da9cfe81c919d99924591e70407cea55a63 /linuxthreads/mutex.c
parentc0bc5f7b8fd62dfa566dd3adb91f3a1ee8db6aeb (diff)
downloadglibc-383052e98ce628ba1d5046ba663a8b70271e3eb8.tar.gz
glibc-383052e98ce628ba1d5046ba663a8b70271e3eb8.tar.xz
glibc-383052e98ce628ba1d5046ba663a8b70271e3eb8.zip
Update.
2000-03-23  Ulrich Drepper  <drepper@redhat.com>

	* resolv/netdb.h (SCOPE_DELIMITER): New definitions.
	* inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
	according to RFC 2553.
	* sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
	* inet/getnameinfo.c: Likewise.
	Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
Diffstat (limited to 'linuxthreads/mutex.c')
-rw-r--r--linuxthreads/mutex.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/linuxthreads/mutex.c b/linuxthreads/mutex.c
index 06d97df03f..97b5a4fb84 100644
--- a/linuxthreads/mutex.c
+++ b/linuxthreads/mutex.c
@@ -223,3 +223,15 @@ int __pthread_once(pthread_once_t * once_control, void (*init_routine)(void))
   return 0;
 }
 strong_alias (__pthread_once, pthread_once)
+
+/*
+ * This is called in the child process after a fork to make
+ * sure that the global mutex pthread_once is not held,
+ * and that the condition variable is reset to an initial state.
+ */
+
+void __pthread_reset_pthread_once(void)
+{
+  pthread_mutex_init(&once_masterlock, NULL);
+  pthread_cond_init(&once_finished, NULL);
+}