summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_join.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2006-12-23 00:59:50 +0000
committerDavid Xu <davidxu@FreeBSD.org>2006-12-23 00:59:50 +0000
commitcc0f33fe0aa00181bc5936e51f04e1f36d5db802 (patch)
tree382fe5d4d2a8c00bee4501fea52ecf0c7581f410 /lib/libthr/thread/thr_join.c
parent0ce9f6ebd7ba56f5c01c1457d8a337617ee5533d (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_join.c')
-rw-r--r--lib/libthr/thread/thr_join.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_join.c b/lib/libthr/thread/thr_join.c
index 5b70391b4abd..26c2c325d406 100644
--- a/lib/libthr/thread/thr_join.c
+++ b/lib/libthr/thread/thr_join.c
@@ -84,7 +84,7 @@ join_common(pthread_t pthread, void **thread_return,
if ((ret = _thr_find_thread(curthread, pthread, 1)) != 0) {
ret = ESRCH;
} else if ((pthread->tlflags & TLFLAGS_DETACHED) != 0) {
- ret = ESRCH;
+ ret = EINVAL;
} else if (pthread->joiner != NULL) {
/* Multiple joiners are not supported. */
ret = ENOTSUP;