mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:47: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:
parent
3108daecc5
commit
e71b84228e
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue