projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move __abort_lock to its own file and drop pointless weak_alias trick
[musl]
/
src
/
thread
/
pthread_setschedparam.c
diff --git
a/src/thread/pthread_setschedparam.c
b/src/thread/pthread_setschedparam.c
index
038d13d
..
76d4d45
100644
(file)
--- 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;
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);
LOCK(t->killlock);
r = !t->tid ? ESRCH : -__syscall(SYS_sched_setscheduler, t->tid, policy, param);
UNLOCK(t->killlock);
+ __restore_sigs(&set);
return r;
}
return r;
}