1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

Kernel: Mark sys$kill as not needing the big lock

This syscall sends a signal to other threads or itself. This mechanism
is already guarded by locking mechanisms, and widely used within the
kernel without help from the big lock.
This commit is contained in:
Andreas Kling 2023-04-03 18:39:07 +02:00
parent 3108daecc5
commit e71b84228e
2 changed files with 2 additions and 2 deletions

View file

@ -102,7 +102,7 @@ ErrorOr<void> Process::do_killself(int signal)
ErrorOr<FlatPtr> Process::sys$kill(pid_t pid_or_pgid, int signal)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
VERIFY_NO_PROCESS_BIG_LOCK(this);
if (pid_or_pgid == pid().value())
TRY(require_promise(Pledge::stdio));
else