diff options
Diffstat (limited to 'lib/libc_r/uthread/uthread_cancel.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_cancel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc_r/uthread/uthread_cancel.c b/lib/libc_r/uthread/uthread_cancel.c index 4c6ca98b0d1d..cf72d89e908b 100644 --- a/lib/libc_r/uthread/uthread_cancel.c +++ b/lib/libc_r/uthread/uthread_cancel.c @@ -70,6 +70,7 @@ _pthread_cancel(pthread_t pthread) if (pthread->join_status.thread != NULL) { pthread->join_status.thread->joiner = NULL; + pthread->join_status.thread = NULL; } pthread->cancelflags |= PTHREAD_CANCELLING; PTHREAD_NEW_STATE(pthread, PS_RUNNING); |