summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_join.c
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>1997-11-25 01:29:16 +0000
committerAlexander Langer <alex@FreeBSD.org>1997-11-25 01:29:16 +0000
commit09bb0da60cdda81d524e1252636e5ae5d01e6b56 (patch)
tree7df2107cb14b747d86e7667a8e44591c95fe05ea /lib/libpthread/thread/thr_join.c
parent3234f7c1cc2d1adb7150b06de37c92a76bafc5fa (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_join.c')
-rw-r--r--lib/libpthread/thread/thr_join.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libpthread/thread/thr_join.c b/lib/libpthread/thread/thr_join.c
index 161482e289a8..63d0d5880bec 100644
--- a/lib/libpthread/thread/thr_join.c
+++ b/lib/libpthread/thread/thr_join.c
@@ -67,14 +67,12 @@ pthread_join(pthread_t pthread, void **thread_return)
if (pthread1 == NULL) {
/* Return an error: */
- errno = ESRCH;
- rval = -1;
+ rval = ESRCH;
/* Check if this thread has been detached: */
} else if ((pthread->attr.flags & PTHREAD_DETACHED) != 0) {
/* Return an error: */
- errno = ESRCH;
- rval = -1;
+ rval = ESRCH;
}
/* Check if the thread is not dead: */
else if (pthread->state != PS_DEAD) {
@@ -96,8 +94,7 @@ pthread_join(pthread_t pthread, void **thread_return)
}
} else {
/* Return an error: */
- errno = ESRCH;
- rval = -1;
+ rval = ESRCH;
}
} else {
/* Check if the return value is required: */