From fe9827bbeb609ae4a27856b552db9216543ec3e4 Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 10 Jul 2023 21:09:12 +0200 Subject: [PATCH] kernel: Fix fallthrough in switch statement --- kernel/src/sys/signal.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } }