X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=toolchain%2FuClibc%2Fpatches%2F200-libpthread_fix.patch;h=148f608cd081d0f97efe7240af3c416bdb1a360f;hb=8bee86b5afe68b2808fd808cc83e11bbcb0d6d88;hp=8acfa3f96fb99fd26c40e3f040f82cf41bd81bec;hpb=da7bce7a48807987eda02bccd75d8a133d91bf31;p=openwrt-10.03%2F.git diff --git a/toolchain/uClibc/patches/200-libpthread_fix.patch b/toolchain/uClibc/patches/200-libpthread_fix.patch index 8acfa3f96..148f608cd 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 + ++#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)