summary refs log tree commit diff
path: root/linuxthreads/cancel.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/cancel.c')
-rw-r--r--linuxthreads/cancel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linuxthreads/cancel.c b/linuxthreads/cancel.c
index 370a373c77..40f9db5302 100644
--- a/linuxthreads/cancel.c
+++ b/linuxthreads/cancel.c
@@ -65,6 +65,7 @@ int pthread_cancel(pthread_t thread)
   th = handle->h_descr;
 
   if (th->p_cancelstate == PTHREAD_CANCEL_DISABLE || th->p_canceled) {
+    th->p_canceled = 1;
     __pthread_unlock(&handle->h_lock);
     return 0;
   }