mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-11 12:50:58 +08:00
Update.
2000-05-08 Jakub Jelinek <jakub@redhat.com> * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that they are not dlclose'd from underneath us.
This commit is contained in:
parent
0320a5aad4
commit
3b3938c9f4
@ -1,3 +1,8 @@
|
|||||||
|
2000-05-08 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
|
||||||
|
they are not dlclose'd from underneath us.
|
||||||
|
|
||||||
2000-05-08 Andreas Schwab <schwab@suse.de>
|
2000-05-08 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
* posix/execle.c: Fix size parameter of memcpy.
|
* posix/execle.c: Fix size parameter of memcpy.
|
||||||
|
@ -58,7 +58,13 @@ _dl_fini (void)
|
|||||||
the pointers in. */
|
the pointers in. */
|
||||||
maps = (struct link_map **) alloca (nloaded * sizeof (struct link_map *));
|
maps = (struct link_map **) alloca (nloaded * sizeof (struct link_map *));
|
||||||
for (l = _dl_loaded, nloaded = 0; l != NULL; l = l->l_next)
|
for (l = _dl_loaded, nloaded = 0; l != NULL; l = l->l_next)
|
||||||
maps[nloaded++] = l;
|
{
|
||||||
|
maps[nloaded++] = l;
|
||||||
|
|
||||||
|
/* Bump l_opencount of all objects so that they are not dlclose()ed
|
||||||
|
from underneath us. */
|
||||||
|
++l->l_opencount;
|
||||||
|
}
|
||||||
|
|
||||||
/* Now we have to do the sorting. */
|
/* Now we have to do the sorting. */
|
||||||
for (l = _dl_loaded->l_next; l != NULL; l = l->l_next)
|
for (l = _dl_loaded->l_next; l != NULL; l = l->l_next)
|
||||||
|
Loading…
Reference in New Issue
Block a user