SHA256
1
0
forked from pool/glibc
glibc/reinitialize-dl_load_write_lock.patch
Dominique Leuenberger e83435778c Accepting request 348825 from Base:System
- reinitialize-dl_load_write_lock.patch: Reinitialize dl_load_write_lock
  on fork (BZ #19282) (forwarded request 348824 from Andreas_Schwab)

OBS-URL: https://build.opensuse.org/request/show/348825
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glibc?expand=0&rev=198
2015-12-17 14:51:42 +00:00

16 lines
637 B
Diff

Index: glibc-2.22/sysdeps/nptl/fork.c
===================================================================
--- glibc-2.22.orig/sysdeps/nptl/fork.c
+++ glibc-2.22/sysdeps/nptl/fork.c
@@ -174,8 +174,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)