diff options
Diffstat (limited to 'linuxthreads/cancel.c')
-rw-r--r-- | linuxthreads/cancel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linuxthreads/cancel.c b/linuxthreads/cancel.c index 370a373..40f9db5 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; } |