summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_exit.c
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2001-11-17 14:28:39 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2001-11-17 14:28:39 +0000
commitccc7b69205d48bc890a1565811ef265a7904977c (patch)
treed9b490926b6ae401659e2052a1b89c5bea09c6d4 /lib/libpthread/thread/thr_exit.c
parent608f31f640fa809e3d3f91a58b0bcbe10e125267 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_exit.c')
-rw-r--r--lib/libpthread/thread/thr_exit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_exit.c b/lib/libpthread/thread/thr_exit.c
index 937635058de1..d916f5c3e232 100644
--- a/lib/libpthread/thread/thr_exit.c
+++ b/lib/libpthread/thread/thr_exit.c
@@ -220,8 +220,9 @@ _pthread_exit(void *status)
}
/* Set the return value for the joining thread: */
- pthread->ret = curthread->ret;
- pthread->error = 0;
+ pthread->join_status.ret = curthread->ret;
+ pthread->join_status.error = 0;
+ pthread->join_status.thread = NULL;
/* Make this thread collectable by the garbage collector. */
PTHREAD_ASSERT(((curthread->attr.flags & PTHREAD_DETACHED) ==