microblaze port
[musl] / src / thread / pthread_setcanceltype.c
index 7eb543a..ce2fff0 100644 (file)
@@ -6,5 +6,6 @@ int pthread_setcanceltype(int new, int *old)
        if (new > 1U) return EINVAL;
        if (old) *old = self->cancelasync;
        self->cancelasync = new;
+       if (new) pthread_testcancel();
        return 0;
 }