diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-01-21 00:14:27 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-01-21 00:14:27 +0000 |
commit | 82df2969f85d63e08f0c6ea33c0602c29039ec51 (patch) | |
tree | e0b06f1883f02953c24afacdaa19c81864ac7ed8 | |
parent | 1e2623127469890c7912d12a8ba5bc70d068eb18 (diff) | |
download | glibc-82df2969f85d63e08f0c6ea33c0602c29039ec51.zip glibc-82df2969f85d63e08f0c6ea33c0602c29039ec51.tar.gz glibc-82df2969f85d63e08f0c6ea33c0602c29039ec51.tar.bz2 |
Update.
1999-01-21 Ulrich Drepper <drepper@cygnus.com>
* manager.c (pthread_allocate_stack): Set
__pthread_nonstandard_stacks if user-specified stack is used.
-rw-r--r-- | elf/dl-close.c | 4 | ||||
-rw-r--r-- | linuxthreads/ChangeLog | 5 | ||||
-rw-r--r-- | linuxthreads/manager.c | 1 |
3 files changed, 8 insertions, 2 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c index f2f2b8b..a56c144 100644 --- a/elf/dl-close.c +++ b/elf/dl-close.c @@ -103,10 +103,10 @@ _dl_close (struct link_map *map) if (imap->l_global) { /* This object is in the global scope list. Remove it. */ - unsigned int cnt = _dl_main_searchlist->r_nlist; + int cnt = _dl_main_searchlist->r_nlist; do - if (cnt-- == 0) + if (--cnt < 0) break; while (_dl_main_searchlist->r_list[cnt] != imap); diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 7eac05f..a4ee453 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,8 @@ +1999-01-21 Ulrich Drepper <drepper@cygnus.com> + + * manager.c (pthread_allocate_stack): Set + __pthread_nonstandard_stacks if user-specified stack is used. + 1999-01-16 Ulrich Drepper <drepper@cygnus.com> * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO, diff --git a/linuxthreads/manager.c b/linuxthreads/manager.c index cf9796a..caa8190 100644 --- a/linuxthreads/manager.c +++ b/linuxthreads/manager.c @@ -229,6 +229,7 @@ static int pthread_allocate_stack(const pthread_attr_t *attr, new_thread_bottom = (char *) attr->__stackaddr - attr->__stacksize; guardaddr = NULL; guardsize = 0; + __pthread_nonstandard_stacks = 1; } else { |