diff options
Diffstat (limited to 'lib/libc_r/uthread/uthread_file.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc_r/uthread/uthread_file.c b/lib/libc_r/uthread/uthread_file.c index 5c89b09..f1bac17 100644 --- a/lib/libc_r/uthread/uthread_file.c +++ b/lib/libc_r/uthread/uthread_file.c @@ -256,7 +256,8 @@ _flockfile_debug(FILE * fp, char *fname, int lineno) _thread_kern_sig_undefer(); if (((_thread_run->cancelflags & PTHREAD_CANCEL_NEEDED) != 0) && - (_thread_run->cancelflags & PTHREAD_CANCEL_DISABLE) != 0) { + (_thread_run->cancelflags & PTHREAD_CANCEL_DISABLE) != 0) { + _thread_run->cancelflags &= ~PTHREAD_CANCEL_NEEDED; _thread_exit_cleanup(); pthread_exit(PTHREAD_CANCELED); } |