diff options
author | Andreas Kling <kling@serenityos.org> | 2022-03-07 17:56:25 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-08 00:19:49 +0100 |
commit | 24f02bd42196efd6456fce3aac8d8304066a1a45 (patch) | |
tree | 9b8dd6b77a322d57bd63eb3fbf7aabf298f5eff1 /Kernel/ProcessSpecificExposed.cpp | |
parent | 71792e4b3fafbf54b97d20b1be915043a79b2eb6 (diff) | |
download | serenity-24f02bd42196efd6456fce3aac8d8304066a1a45.zip |
Kernel: Put Process's current directory in a SpinlockProtected
Also let's call it "current_directory" instead of "cwd" everywhere.
Diffstat (limited to 'Kernel/ProcessSpecificExposed.cpp')
-rw-r--r-- | Kernel/ProcessSpecificExposed.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/ProcessSpecificExposed.cpp b/Kernel/ProcessSpecificExposed.cpp index c0db187b18..a8b1e0ecbb 100644 --- a/Kernel/ProcessSpecificExposed.cpp +++ b/Kernel/ProcessSpecificExposed.cpp @@ -274,7 +274,7 @@ ErrorOr<void> Process::procfs_get_virtual_memory_stats(KBufferBuilder& builder) ErrorOr<void> Process::procfs_get_current_work_directory_link(KBufferBuilder& builder) const { - return builder.append(TRY(const_cast<Process&>(*this).current_directory().try_serialize_absolute_path())->view()); + return builder.append(TRY(const_cast<Process&>(*this).current_directory()->try_serialize_absolute_path())->view()); } mode_t Process::binary_link_required_mode() const |