diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-01-14 08:42:51 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-01-14 08:42:51 +0100 |
commit | 29e8c99a7a028ba729bb0f910611efa13f94cd35 (patch) | |
tree | d66ead6075c9abd5acbe504665292cc9dd6c94dc /threads.c | |
parent | 1bc864bfcdd7e57d3c049a1f5a8cd66c59c08b7a (diff) | |
parent | 8d28cc6894828fd49b909cbbd0bd9ce818f00176 (diff) | |
download | rsyslog-29e8c99a7a028ba729bb0f910611efa13f94cd35.tar.gz rsyslog-29e8c99a7a028ba729bb0f910611efa13f94cd35.tar.bz2 rsyslog-29e8c99a7a028ba729bb0f910611efa13f94cd35.zip |
Merge branch 'v7-stable-libnet-frag'
Conflicts:
ChangeLog
Diffstat (limited to 'threads.c')
-rw-r--r-- | threads.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -183,9 +183,11 @@ static void* thrdStarter(void *arg) assert(pThis != NULL); assert(pThis->pUsrThrdMain != NULL); + ustrncpy(thrdName+3, pThis->name, 20); + dbgOutputTID((char*)thrdName); + # 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); if(prctl(PR_SET_NAME, thrdName, 0, 0, 0) != 0) { DBGPRINTF("prctl failed, not setting thread name for '%s'\n", pThis->name); } else { |