diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-07-21 23:08:07 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-07-22 10:07:15 -0700 |
commit | e79f0e2ee95f16bdc52001162f818ad4737f7807 (patch) | |
tree | 3dec946d8bab925420806763a8385789b8acb365 /Kernel/Process.cpp | |
parent | a39a341e26859123ef24d612a6da724a361b2561 (diff) | |
download | serenity-e79f0e2ee95f16bdc52001162f818ad4737f7807.zip |
Kernel+LibC: Don't hardcode the maximum signal number everywhere
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r-- | Kernel/Process.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 4c50479e70..90a0c38456 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -738,7 +738,7 @@ void Process::die() void Process::terminate_due_to_signal(u8 signal) { VERIFY_INTERRUPTS_DISABLED(); - VERIFY(signal < 32); + VERIFY(signal < NSIG); VERIFY(&Process::current() == this); dbgln("Terminating {} due to signal {}", *this, signal); { |