mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
Kernel: Disable big process lock for sys$getpid()
This commit is contained in:
parent
bfd4635274
commit
638598b15d
2 changed files with 2 additions and 2 deletions
|
@ -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) \
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue