Kernel: Move process parent PID into protected data :^)

This commit is contained in:
Andreas Kling 2021-03-10 20:09:49 +01:00
commit 3d27269f13
Notes: sideshowbarker 2024-07-18 21:32:48 +09:00
4 changed files with 6 additions and 6 deletions

View file

@ -38,7 +38,7 @@ KResultOr<pid_t> Process::sys$getpid()
KResultOr<pid_t> Process::sys$getppid()
{
REQUIRE_PROMISE(stdio);
return m_ppid.value();
return protected_data().ppid.value();
}
KResultOr<int> Process::sys$get_process_name(Userspace<char*> buffer, size_t buffer_size)