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
commit e71b84228e
Notes: sideshowbarker 2024-07-17 04:09:56 +09:00
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