# HG changeset patch # User Sebastien Decugis # Date 1265190099 -32400 # Node ID 1f39f0c51094e8cc56701e778263768bbad0c625 # Parent 80a8605ab4db4c413859e07df9189b4aea2ce273 Add a trace to help finding the bug... diff -r 80a8605ab4db -r 1f39f0c51094 include/freeDiameter/libfreeDiameter.h --- a/include/freeDiameter/libfreeDiameter.h Wed Feb 03 18:19:04 2010 +0900 +++ b/include/freeDiameter/libfreeDiameter.h Wed Feb 03 18:41:39 2010 +0900 @@ -492,8 +492,10 @@ /* Then join the thread */ CHECK_POSIX_DO( ret = pthread_join(*th, &th_ret), /* continue */ ); - if (th_ret != NULL) { - TRACE_DEBUG(ANNOYING, "The thread returned the following value: %p (ignored)", th_ret); + if (th_ret == PTHREAD_CANCELED) { + TRACE_DEBUG(ANNOYING, "The thread %p was canceled", *th); + } else { + TRACE_DEBUG(CALL, "The thread %p returned %x", *th, th_ret); } /* Clean the location */