mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-05 16:10:55 +00:00
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
This commit is contained in:
parent
18f78b4988
commit
597dc824a0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153526
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue