Apologies for the last patch - it was missing a line to set the
handle to NULL, otherwise apr_thread_join does not work.
Chris
--- thread.c 2005-12-30 15:44:05.000000000 +1100
+++ thread.c.orig 2005-12-29 10:05:45.000000000 +1100
@@ -137,10 +137,6 @@
apr_pool_destroy(thd->pool);
thd->pool = NULL;
#ifndef _WIN32_WCE
- /* need to close the handle as _endthreadex does not automatically
- * do this - unlike _endthread
- */
- CloseHandle(thd->td);
- thd->td = NULL;
_endthreadex(0);
#else
ExitThread(0);