Implement signals, finally! #30

Merged
apio merged 14 commits from finally-signals into main 2023-07-10 20:16:00 +00:00
Showing only changes of commit fe9827bbeb - Show all commits

View File

@ -88,9 +88,9 @@ Result<u64> sys_sigprocmask(Registers*, SyscallArgs args)
switch (how)
{
case SIG_BLOCK: current->signal_mask |= kset;
case SIG_UNBLOCK: current->signal_mask &= ~kset;
case SIG_SETMASK: current->signal_mask = kset;
case SIG_BLOCK: current->signal_mask |= kset; break;
case SIG_UNBLOCK: current->signal_mask &= ~kset; break;
case SIG_SETMASK: current->signal_mask = kset; break;
default: return err(EINVAL);
}
}