File reinitialize-dl_load_write_lock.patch of Package glibc.1872

Index: glibc-2.19/nptl/sysdeps/unix/sysv/linux/fork.c
===================================================================
--- glibc-2.19.orig/nptl/sysdeps/unix/sysv/linux/fork.c
+++ glibc-2.19/nptl/sysdeps/unix/sysv/linux/fork.c
@@ -179,8 +179,9 @@ __libc_fork (void)
       /* Reset locks in the I/O code.  */
       _IO_list_resetlock ();
 
-      /* Reset the lock the dynamic loader uses to protect its data.  */
+      /* Reset the locks the dynamic loader uses to protect its data.  */
       __rtld_lock_initialize (GL(dl_load_lock));
+      __rtld_lock_initialize (GL(dl_load_write_lock));
 
       /* Run the handlers registered for the child.  */
       while (allp != NULL)
openSUSE Build Service is sponsored by