diff options
| author | David Xu <davidxu@FreeBSD.org> | 2006-12-23 00:59:50 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2006-12-23 00:59:50 +0000 |
| commit | cc0f33fe0aa00181bc5936e51f04e1f36d5db802 (patch) | |
| tree | 382fe5d4d2a8c00bee4501fea52ecf0c7581f410 /lib/libpthread/thread/thr_join.c | |
| parent | 0ce9f6ebd7ba56f5c01c1457d8a337617ee5533d (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_join.c')
| -rw-r--r-- | lib/libpthread/thread/thr_join.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_join.c b/lib/libpthread/thread/thr_join.c index 9f940da0ff74..fce4c945969a 100644 --- a/lib/libpthread/thread/thr_join.c +++ b/lib/libpthread/thread/thr_join.c @@ -77,7 +77,7 @@ _pthread_join(pthread_t pthread, void **thread_return) THR_SCHED_UNLOCK(curthread, pthread); /* Remove the reference and return an error: */ _thr_ref_delete(curthread, pthread); - ret = ESRCH; + ret = EINVAL; } else { /* Lock the target thread while checking its state. */ if (pthread->state == PS_DEAD) { |
