From 1d9d0b80d1412f8a272e0881d34538a041e56b4b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 11 Dec 2003 04:52:17 +0000 Subject: Update. 2003-12-10 Ulrich Drepper * sysdeps/pthread/bits/libc-lock.h (__rtld_lock_initialize): Define. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Call __rtld_lock_initialize for ld.so lock. Patch in part by Adam Li . --- nptl/sysdeps/unix/sysv/linux/fork.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nptl/sysdeps/unix/sysv/linux') diff --git a/nptl/sysdeps/unix/sysv/linux/fork.c b/nptl/sysdeps/unix/sysv/linux/fork.c index 43e1b43e2b..84bf3793b6 100644 --- a/nptl/sysdeps/unix/sysv/linux/fork.c +++ b/nptl/sysdeps/unix/sysv/linux/fork.c @@ -151,6 +151,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. */ + __rtld_lock_initialize (GL(dl_load_lock)); + /* Run the handlers registered for the child. */ while (allp != NULL) { -- cgit 1.4.1