diff options
author | Andreas Kling <kling@serenityos.org> | 2021-03-10 20:09:49 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-10 22:30:02 +0100 |
commit | 3d27269f13372ea259688a4a2821cc401159d5ae (patch) | |
tree | ee472aa698ba0c1492136deea14042d9fb340545 /Kernel/Syscalls/process.cpp | |
parent | d677a73b0e7f39013017f1395b698e7e6ca0f6a2 (diff) | |
download | serenity-3d27269f13372ea259688a4a2821cc401159d5ae.zip |
Kernel: Move process parent PID into protected data :^)
Diffstat (limited to 'Kernel/Syscalls/process.cpp')
-rw-r--r-- | Kernel/Syscalls/process.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/process.cpp b/Kernel/Syscalls/process.cpp index e604641965..06301d94f6 100644 --- a/Kernel/Syscalls/process.cpp +++ b/Kernel/Syscalls/process.cpp @@ -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) |