Mercurial > hg > freeDiameter
changeset 181:1f39f0c51094
Add a trace to help finding the bug...
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Wed, 03 Feb 2010 18:41:39 +0900 |
parents | 80a8605ab4db |
children | 9ed2e3ce4434 |
files | include/freeDiameter/libfreeDiameter.h |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 */