summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_join.c
diff options
context:
space:
mode:
authorJason Evans <jasone@FreeBSD.org>2001-08-16 06:31:32 +0000
committerJason Evans <jasone@FreeBSD.org>2001-08-16 06:31:32 +0000
commit8588aeec8c491662c6795e9c934f89feb5b1442a (patch)
tree58d56e8f03dd7d3a15b34ecf3a5680c7e056fa65 /lib/libpthread/thread/thr_join.c
parentd5499896947b8579868536fafa6cc704a6de7f4f (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_join.c')
-rw-r--r--lib/libpthread/thread/thr_join.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_join.c b/lib/libpthread/thread/thr_join.c
index 968c24cb9064..454c79a924f9 100644
--- a/lib/libpthread/thread/thr_join.c
+++ b/lib/libpthread/thread/thr_join.c
@@ -121,6 +121,9 @@ _pthread_join(pthread_t pthread, void **thread_return)
/* Set the running thread to be the joiner: */
pthread->joiner = curthread;
+ /* Keep track of which thread we're joining to: */
+ curthread->data.thread = pthread;
+
/* Schedule the next thread: */
_thread_kern_sched_state(PS_JOIN, __FILE__, __LINE__);