aarch64: add HWCAP2_ macros from linux v5.3
[musl] / src / thread / pthread_setschedprio.c
index 5bf4a01..fc2e13d 100644 (file)
@@ -4,8 +4,11 @@
 int pthread_setschedprio(pthread_t t, int prio)
 {
        int r;
+       sigset_t set;
+       __block_app_sigs(&set);
        LOCK(t->killlock);
        r = !t->tid ? ESRCH : -__syscall(SYS_sched_setparam, t->tid, &prio);
        UNLOCK(t->killlock);
+       __restore_sigs(&set);
        return r;
 }