summaryrefslogtreecommitdiffstats
path: root/lib/libthr
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2005-12-19 03:20:55 +0000
committerdavidxu <davidxu@FreeBSD.org>2005-12-19 03:20:55 +0000
commita8cc7e07c2e37024b1ad61cc5157f75f3b8b0337 (patch)
tree938b2efd6ca152ef51d5a8e558c1c73418ed3e89 /lib/libthr
parentcac7998f8e10112fff09b56268bd568d55c4f954 (diff)
downloadFreeBSD-src-a8cc7e07c2e37024b1ad61cc5157f75f3b8b0337.zip
FreeBSD-src-a8cc7e07c2e37024b1ad61cc5157f75f3b8b0337.tar.gz
Clear return code to zero if joiner successfully waited joinee.
Bug reported by: jasone at connonware when using ports lang/onyx MFC after: 3 days
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/thread/thr_join.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_join.c b/lib/libthr/thread/thr_join.c
index 097c97f..2f22cbe 100644
--- a/lib/libthr/thread/thr_join.c
+++ b/lib/libthr/thread/thr_join.c
@@ -127,6 +127,7 @@ join_common(pthread_t pthread, void **thread_return,
pthread->joiner = NULL;
THREAD_LIST_UNLOCK(curthread);
} else {
+ ret = 0;
tmp = pthread->ret;
THREAD_LIST_LOCK(curthread);
pthread->tlflags |= TLFLAGS_DETACHED;
OpenPOWER on IntegriCloud