signal: add signal_returnmask and other fixes

This commit is contained in:
Matheus
2024-09-12 22:08:57 -03:00
parent cf3e58ffe1
commit 31c7cf881c
6 changed files with 15 additions and 12 deletions
+1 -1
View File
@@ -529,7 +529,7 @@ static void yield(context_t *context, void *) {
thread_t *next = runqueuenext(sleeping ? 0x0fffffff : thread->priority);
bool gotsignal = false;
for (int i = 0; i < NSIG && thread->proc; ++i) {
for (int i = 1; i < NSIG && thread->proc; ++i) {
void *action = thread->proc->signals.actions[i].address;
if (SIGNAL_GET(&thread->signals.urgent, i)) {
gotsignal = true;