#include <hp-timing.h>
#include <ldsodefs.h>
#include <atomic.h>
+#include <libc-internal.h>
#include <shlib-compat.h>
pd->result = pd->start_routine (pd->arg);
}
+ /* Clean up any state libc stored in thread-local variables. */
+ __libc_thread_freeres ();
/* If this is the last thread we terminate the process now. We
do not notify the debugger, it might just irritate it if there
/* This was the last thread. */
exit (0);
-
/* Report the death of the thread if this is wanted. */
if (__builtin_expect (pd->report_events, 0))
{