summaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-01-14 00:52:51 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-01-14 00:52:51 +0000
commit0faef985b774da37ffd3edb74dc59b4d77232f9d (patch)
treeaa64521a773559927a32e251d5b9e610a857567d /toolchain/uClibc
parent1e97a5e45945cb65aba0f211e857cb35482d4a6a (diff)
downloadmaster-31e0f0ae-0faef985b774da37ffd3edb74dc59b4d77232f9d.tar.gz
master-31e0f0ae-0faef985b774da37ffd3edb74dc59b4d77232f9d.tar.bz2
master-31e0f0ae-0faef985b774da37ffd3edb74dc59b4d77232f9d.zip
work around problems with the libpthread onexit() handler
SVN-Revision: 14032
Diffstat (limited to 'toolchain/uClibc')
-rw-r--r--toolchain/uClibc/patches/200-libpthread_fix.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches/200-libpthread_fix.patch b/toolchain/uClibc/patches/200-libpthread_fix.patch
index 8acfa3f96f..148f608cd0 100644
--- a/toolchain/uClibc/patches/200-libpthread_fix.patch
+++ b/toolchain/uClibc/patches/200-libpthread_fix.patch
@@ -33,3 +33,24 @@
lib-a-$(UCLIBC_HAS_THREADS) += $(top_builddir)lib/libpthread.a
lib-so-$(UCLIBC_HAS_THREADS) += $(top_builddir)lib/libpthread.so
+--- a/libpthread/linuxthreads/pthread.c
++++ b/libpthread/linuxthreads/pthread.c
+@@ -32,6 +32,8 @@
+ #include "smp.h"
+ #include <not-cancel.h>
+
++#define HAVE_Z_NODELETE
++
+ /* Sanity check. */
+ #if !defined __SIGRTMIN || (__SIGRTMAX - __SIGRTMIN) < 3
+ # error "This must not happen"
+@@ -976,7 +978,9 @@ static void pthread_onexit_process(int r
+ request.req_args.exit.code = retcode;
+ TEMP_FAILURE_RETRY(write_not_cancel(__pthread_manager_request,
+ (char *) &request, sizeof(request)));
++#ifdef notyet
+ suspend(self);
++#endif
+ /* Main thread should accumulate times for thread manager and its
+ children, so that timings for main thread account for all threads. */
+ if (self == __pthread_main_thread)