From: Rich Felker Date: Sat, 9 Apr 2011 06:26:55 +0000 (-0400) Subject: run pthread tsd destructors when a timer thread pretends to exit X-Git-Tag: v0.7.8~24 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2063c4cac27f118c21dcb9352e8a4903131c88c8;p=oweals%2Fmusl.git run pthread tsd destructors when a timer thread pretends to exit --- diff --git a/src/time/timer_create.c b/src/time/timer_create.c index 1b184f74..c107e150 100644 --- a/src/time/timer_create.c +++ b/src/time/timer_create.c @@ -13,11 +13,17 @@ struct start_args { struct sigevent *sev; }; +static void dummy_1(pthread_t self) +{ +} +weak_alias(dummy_1, __pthread_tsd_run_dtors); + static void cleanup_fromsig(void *p) { pthread_t self = __pthread_self(); self->cancel = 0; self->cancelbuf = 0; + __pthread_tsd_run_dtors(self); longjmp(p, 1); }