diff --git a/kernel/src/sys/signal.cpp b/kernel/src/sys/signal.cpp index e81952a0..2bde914b 100644 --- a/kernel/src/sys/signal.cpp +++ b/kernel/src/sys/signal.cpp @@ -88,9 +88,9 @@ Result 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); } }