summaryrefslogtreecommitdiff
path: root/src/thread/pthread_setschedparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/pthread_setschedparam.c')
-rw-r--r--src/thread/pthread_setschedparam.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/thread/pthread_setschedparam.c b/src/thread/pthread_setschedparam.c
index 038d13d8..76d4d45a 100644
--- a/src/thread/pthread_setschedparam.c
+++ b/src/thread/pthread_setschedparam.c
@@ -4,8 +4,11 @@
int pthread_setschedparam(pthread_t t, int policy, const struct sched_param *param)
{
int r;
+ sigset_t set;
+ __block_app_sigs(&set);
LOCK(t->killlock);
r = !t->tid ? ESRCH : -__syscall(SYS_sched_setscheduler, t->tid, policy, param);
UNLOCK(t->killlock);
+ __restore_sigs(&set);
return r;
}