summaryrefslogtreecommitdiffstats
path: root/threads.c
diff options
context:
space:
mode:
Diffstat (limited to 'threads.c')
-rw-r--r--threads.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/threads.c b/threads.c
index aea5de9f..990733a8 100644
--- a/threads.c
+++ b/threads.c
@@ -184,8 +184,10 @@ static void* thrdStarter(void *arg)
assert(pThis->pUsrThrdMain != NULL);
# if HAVE_PRCTL && defined PR_SET_NAME
- /* set thread name - we ignore if the call fails, has no harsh consequences... */
ustrncpy(thrdName+3, pThis->name, 20);
+ dbgOutputTID((char*)thrdName);
+
+ /* set thread name - we ignore if the call fails, has no harsh consequences... */
if(prctl(PR_SET_NAME, thrdName, 0, 0, 0) != 0) {
DBGPRINTF("prctl failed, not setting thread name for '%s'\n", pThis->name);
} else {