Kernel: Disable big process lock for sys$getpid()

This commit is contained in:
Brian Gianforcaro 2021-07-18 11:33:13 -07:00 committed by Gunnar Beutner
parent bfd4635274
commit 638598b15d
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ enum class NeedsBigProcessLock {
S(geteuid, NeedsBigProcessLock::Yes) \
S(getegid, NeedsBigProcessLock::Yes) \
S(getgid, NeedsBigProcessLock::Yes) \
S(getpid, NeedsBigProcessLock::Yes) \
S(getpid, NeedsBigProcessLock::No) \
S(getppid, NeedsBigProcessLock::Yes) \
S(getresuid, NeedsBigProcessLock::Yes) \
S(getresgid, NeedsBigProcessLock::Yes) \

View file

@ -11,7 +11,7 @@ namespace Kernel {
KResultOr<FlatPtr> Process::sys$getpid()
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
VERIFY_NO_PROCESS_BIG_LOCK(this)
REQUIRE_PROMISE(stdio);
return pid().value();
}