diff options
Diffstat (limited to 'Kernel/Syscalls/disown.cpp')
-rw-r--r-- | Kernel/Syscalls/disown.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/Syscalls/disown.cpp b/Kernel/Syscalls/disown.cpp index 8d9ee0754f..14ad47cc9b 100644 --- a/Kernel/Syscalls/disown.cpp +++ b/Kernel/Syscalls/disown.cpp @@ -36,7 +36,8 @@ KResultOr<int> Process::sys$disown(ProcessID pid) return ESRCH; if (process->ppid() != this->pid()) return ECHILD; - MutableProtectedData(*this)->ppid = 0; + ProtectedDataMutationScope scope(*process); + process->m_ppid = 0; process->disowned_by_waiter(*this); return 0; } |