summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_cancel.c
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2001-12-15 15:52:24 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2001-12-15 15:52:24 +0000
commit35686a943a6fd2905791f5c249de8c18777c6893 (patch)
tree3c681367908f13778131be7b2722dca34eadca2c /lib/libpthread/thread/thr_cancel.c
parent1e83e65c8bc4d8eb8554d0e59137282013ff6b48 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_cancel.c')
-rw-r--r--lib/libpthread/thread/thr_cancel.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_cancel.c b/lib/libpthread/thread/thr_cancel.c
index 7f40e3601e71..67c1fb4cfcd1 100644
--- a/lib/libpthread/thread/thr_cancel.c
+++ b/lib/libpthread/thread/thr_cancel.c
@@ -68,10 +68,11 @@ _pthread_cancel(pthread_t pthread)
* Disconnect the thread from the joinee and
* detach:
*/
- if (pthread->data.thread != NULL) {
- pthread->data.thread->joiner = NULL;
+ if (pthread->join_status.thread != NULL) {
+ pthread->join_status.thread->joiner
+ = NULL;
pthread_detach((pthread_t)
- pthread->data.thread);
+ pthread->join_status.thread);
}
pthread->cancelflags |= PTHREAD_CANCELLING;
PTHREAD_NEW_STATE(pthread, PS_RUNNING);