1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:48:14 +00:00

Kernel+LibC: Don't hardcode the maximum signal number everywhere

This commit is contained in:
Tim Schumacher 2022-07-21 23:08:07 +02:00 committed by Brian Gianforcaro
parent a39a341e26
commit e79f0e2ee9
4 changed files with 9 additions and 9 deletions

View file

@ -156,7 +156,7 @@ ErrorOr<FlatPtr> Process::sys$kill_thread(pid_t tid, int signal)
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
TRY(require_promise(Pledge::thread));
if (signal < 0 || signal >= 32)
if (signal < 0 || signal >= NSIG)
return EINVAL;
auto thread = Thread::from_tid(tid);