aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libthr/thread/thr_exit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_exit.c b/lib/libthr/thread/thr_exit.c
index 33a2451a45ae..a875d14a27cb 100644
--- a/lib/libthr/thread/thr_exit.c
+++ b/lib/libthr/thread/thr_exit.c
@@ -81,6 +81,8 @@ _pthread_exit(void *status)
/* Flag this thread as exiting. */
curthread->cancelling = 1;
+ curthread->cancel_enable = 0;
+ curthread->cancel_async = 0;
_thr_exit_cleanup();