diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-01-07 23:34:46 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-01-10 08:39:19 +0100 |
commit | 121ee94aa6af104ed33a83bc573739a6f2c02f54 (patch) | |
tree | fcd0fee0920e46dcefc84f5380412c3a61719793 /libpthread/nptl/init.c | |
parent | 097e5f6b5af44c8cfc365b0b7a9d8e628e647607 (diff) |
NPTL: fix infinite recursion
fix infinite recursion on application exit triggered by linking
libc before libpthread.
Patch from OpenWrt.
Reported-by: Leonid Lisovskiy <lly.dev@gmail.com>
Diffstat (limited to 'libpthread/nptl/init.c')
-rw-r--r-- | libpthread/nptl/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/nptl/init.c b/libpthread/nptl/init.c index 776bec755..eb84d6edd 100644 --- a/libpthread/nptl/init.c +++ b/libpthread/nptl/init.c @@ -104,8 +104,8 @@ static const struct pthread_functions pthread_functions = .ptr___pthread_key_create = __pthread_key_create_internal, .ptr___pthread_getspecific = __pthread_getspecific_internal, .ptr___pthread_setspecific = __pthread_setspecific_internal, - .ptr__pthread_cleanup_push_defer = _pthread_cleanup_push_defer, - .ptr__pthread_cleanup_pop_restore = _pthread_cleanup_pop_restore, + .ptr__pthread_cleanup_push_defer = __pthread_cleanup_push_defer, + .ptr__pthread_cleanup_pop_restore = __pthread_cleanup_pop_restore, .ptr_nthreads = &__nptl_nthreads, .ptr___pthread_unwind = &__pthread_unwind, .ptr__nptl_deallocate_tsd = __nptl_deallocate_tsd, |