summaryrefslogtreecommitdiff
path: root/libpthread/nptl/cleanup_defer_compat.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-01-07 23:34:46 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-01-10 08:39:19 +0100
commit121ee94aa6af104ed33a83bc573739a6f2c02f54 (patch)
treefcd0fee0920e46dcefc84f5380412c3a61719793 /libpthread/nptl/cleanup_defer_compat.c
parent097e5f6b5af44c8cfc365b0b7a9d8e628e647607 (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/cleanup_defer_compat.c')
-rw-r--r--libpthread/nptl/cleanup_defer_compat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpthread/nptl/cleanup_defer_compat.c b/libpthread/nptl/cleanup_defer_compat.c
index 64ecb1334..ba15c7983 100644
--- a/libpthread/nptl/cleanup_defer_compat.c
+++ b/libpthread/nptl/cleanup_defer_compat.c
@@ -21,7 +21,7 @@
void
attribute_protected
-_pthread_cleanup_push_defer (
+__pthread_cleanup_push_defer (
struct _pthread_cleanup_buffer *buffer,
void (*routine) (void *),
void *arg)
@@ -56,12 +56,12 @@ _pthread_cleanup_push_defer (
THREAD_SETMEM (self, cleanup, buffer);
}
-strong_alias (_pthread_cleanup_push_defer, __pthread_cleanup_push_defer)
+strong_alias (__pthread_cleanup_push_defer, _pthread_cleanup_push_defer)
void
attribute_protected
-_pthread_cleanup_pop_restore (
+__pthread_cleanup_pop_restore (
struct _pthread_cleanup_buffer *buffer,
int execute)
{
@@ -96,4 +96,4 @@ _pthread_cleanup_pop_restore (
if (execute)
buffer->__routine (buffer->__arg);
}
-strong_alias (_pthread_cleanup_pop_restore, __pthread_cleanup_pop_restore)
+strong_alias (__pthread_cleanup_pop_restore, _pthread_cleanup_pop_restore)