diff --git a/src/thread/thread.c b/src/thread/thread.c index 559df5f07..c3e16af8e 100644 --- a/src/thread/thread.c +++ b/src/thread/thread.c @@ -2,6 +2,7 @@ #include #include #include +#include #ifdef HAVE_PRCTL #include #endif @@ -97,6 +98,7 @@ static int handler(void *p) (void)pthread_setname_np(*th.thr, th.name); #endif #endif + RE_TRACE_THREAD_NAME(th.name); return th.func(th.arg); }