Index: thr_join.c =================================================================== RCS file: /home/ncvs/src/lib/libthr/thread/thr_join.c,v retrieving revision 1.18 diff -u -r1.18 thr_join.c --- thr_join.c 26 Oct 2005 07:11:43 -0000 1.18 +++ thr_join.c 19 Dec 2005 02:39:05 -0000 @@ -126,7 +126,8 @@ _thr_cancel_leave(curthread, oldcancel); THR_CLEANUP_POP(curthread, 0); - + if (pthread->tid == TID_TERMINATED) + ret = 0; if (ret == ETIMEDOUT) { THREAD_LIST_LOCK(curthread); pthread->joiner = NULL;