mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-24 03:32:40 +03:00
Kernel: Mark sys$kill_thread as not needing the big process lock
This syscall does not access any big process lock protected resources.
This commit is contained in:
parent
b44628c1fb
commit
d63667dbf1
Notes:
sideshowbarker
2024-07-16 23:52:22 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/d63667dbf1 Pull-request: https://github.com/SerenityOS/serenity/pull/22318
@ -118,7 +118,7 @@ enum class NeedsBigProcessLock {
|
||||
S(jail_create, NeedsBigProcessLock::No) \
|
||||
S(jail_attach, NeedsBigProcessLock::No) \
|
||||
S(kill, NeedsBigProcessLock::No) \
|
||||
S(kill_thread, NeedsBigProcessLock::Yes) \
|
||||
S(kill_thread, NeedsBigProcessLock::No) \
|
||||
S(killpg, NeedsBigProcessLock::No) \
|
||||
S(link, NeedsBigProcessLock::No) \
|
||||
S(listen, NeedsBigProcessLock::No) \
|
||||
|
@ -169,7 +169,7 @@ ErrorOr<FlatPtr> Process::sys$join_thread(pid_t tid, Userspace<void**> exit_valu
|
||||
|
||||
ErrorOr<FlatPtr> Process::sys$kill_thread(pid_t tid, int signal)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
TRY(require_promise(Pledge::thread));
|
||||
|
||||
if (signal < 0 || signal >= NSIG)
|
||||
|
Loading…
Reference in New Issue
Block a user