about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/ia64/dl-static.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-01-17 19:14:38 +0000
committerUlrich Drepper <drepper@redhat.com>2003-01-17 19:14:38 +0000
commitd1852dbb73b0ceb21cd132bb57ac2cee2364d786 (patch)
treed0bb92822cf97183617a4aeb5e5b3993b6b57351 /sysdeps/unix/sysv/linux/ia64/dl-static.c
parent1d4ff70e19fd12fb68db9f6e8905c98c50d004c4 (diff)
downloadglibc-d1852dbb73b0ceb21cd132bb57ac2cee2364d786.tar.gz
glibc-d1852dbb73b0ceb21cd132bb57ac2cee2364d786.tar.xz
glibc-d1852dbb73b0ceb21cd132bb57ac2cee2364d786.zip
(_dl_static_init): Use __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock on _dl_static_lock.
Diffstat (limited to 'sysdeps/unix/sysv/linux/ia64/dl-static.c')
-rw-r--r--sysdeps/unix/sysv/linux/ia64/dl-static.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/ia64/dl-static.c b/sysdeps/unix/sysv/linux/ia64/dl-static.c
index 11f372d368..b51b2f255a 100644
--- a/sysdeps/unix/sysv/linux/ia64/dl-static.c
+++ b/sysdeps/unix/sysv/linux/ia64/dl-static.c
@@ -1,5 +1,5 @@
 /* Variable initialization.  IA-64 version.
-   Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -53,7 +53,7 @@ _dl_static_init (struct link_map *map)
   lookup_t loadbase;
   void (*f) (void *[]);
 
-  __libc_lock_lock (_dl_static_lock);
+  __libc_lock_lock_recursive (_dl_static_lock);
 
   loadbase = _dl_lookup_symbol ("_dl_var_init", map, &ref,
 				map->l_local_scope, 0, 1);
@@ -63,7 +63,7 @@ _dl_static_init (struct link_map *map)
       f (variables);
     }
 
-  __libc_lock_unlock (_dl_static_lock);
+  __libc_lock_unlock_recursive (_dl_static_lock);
 }
 
 #endif