diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-04-17 11:10:51 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-04-17 11:10:51 +0200 |
commit | 3d914eb90cd7aed1342a01c5993f8c2de4cd1283 (patch) | |
tree | 46046d3136b5ca4fd864813b36b62d330a9c9559 /threads.c | |
parent | 39b35a32b4a45ccb6506e15b02780c30ca8c3973 (diff) | |
parent | 9d59080b4a43ca6d19bece357cb1132374a2116a (diff) | |
download | rsyslog-3d914eb90cd7aed1342a01c5993f8c2de4cd1283.tar.gz rsyslog-3d914eb90cd7aed1342a01c5993f8c2de4cd1283.tar.bz2 rsyslog-3d914eb90cd7aed1342a01c5993f8c2de4cd1283.zip |
Merge branch 'master' into master-imjournal
Diffstat (limited to 'threads.c')
-rw-r--r-- | threads.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -183,10 +183,10 @@ static void* thrdStarter(void *arg) assert(pThis != NULL); assert(pThis->pUsrThrdMain != NULL); +# if HAVE_PRCTL && defined PR_SET_NAME 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... */ if(prctl(PR_SET_NAME, thrdName, 0, 0, 0) != 0) { DBGPRINTF("prctl failed, not setting thread name for '%s'\n", pThis->name); |