summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-12 12:26:06 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-12 12:26:06 +0100
commitbe2dbbd9382d4e25f1b329ea3de45e6401b694aa (patch)
tree4f455141391e648fc006c6800fe2af2b67a13cd8 /thread.c
parent0e22c9ff9e45686d1488d96903d5404d8143afa1 (diff)
downloadvdr-be2dbbd9382d4e25f1b329ea3de45e6401b694aa.tar.gz
vdr-be2dbbd9382d4e25f1b329ea3de45e6401b694aa.tar.bz2
Now logging the description (if present) in case a thread is canceled
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index 5d5e18bd..3293b1d4 100644
--- a/thread.c
+++ b/thread.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: thread.c 1.52 2006/01/28 11:34:35 kls Exp $
+ * $Id: thread.c 1.53 2006/02/12 12:24:39 kls Exp $
*/
#include "thread.h"
@@ -300,7 +300,7 @@ void cThread::Cancel(int WaitSeconds)
return;
cCondWait::SleepMs(10);
}
- esyslog("ERROR: thread %d won't end (waited %d seconds) - canceling it...", childThreadId, WaitSeconds);
+ esyslog("ERROR: %s thread %d won't end (waited %d seconds) - canceling it...", description ? description : "", childThreadId, WaitSeconds);
}
pthread_cancel(childTid);
childTid = 0;