diff options
author | davidxu <davidxu@FreeBSD.org> | 2005-12-19 03:20:55 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2005-12-19 03:20:55 +0000 |
commit | a8cc7e07c2e37024b1ad61cc5157f75f3b8b0337 (patch) | |
tree | 938b2efd6ca152ef51d5a8e558c1c73418ed3e89 /lib/libthr | |
parent | cac7998f8e10112fff09b56268bd568d55c4f954 (diff) | |
download | FreeBSD-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.c | 1 |
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; |