diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-04-21 10:33:32 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-21 13:55:23 +0200 |
commit | 12ce6ef3d72e03b01c218bc3971c709f9069947d (patch) | |
tree | a923b93c4f9f848e6961eb080ffd2248d2df01fd /Kernel/FileSystem | |
parent | ce483fb2c9f029d304df587b5fbdcf60b10b1612 (diff) | |
download | serenity-12ce6ef3d72e03b01c218bc3971c709f9069947d.zip |
Kernel+Userland: Remove the `nfds` entry from `/sys/kernel/processes`
`process.fds()` is protected by a Mutex, which causes issues when we try
to acquire it while holding a Spinlock. Since nothing seems to use this
value, let's just remove it entirely for now.
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r-- | Kernel/FileSystem/SysFS/Subsystems/Kernel/Processes.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Processes.cpp b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Processes.cpp index 85fb924623..eba6af4d07 100644 --- a/Kernel/FileSystem/SysFS/Subsystems/Kernel/Processes.cpp +++ b/Kernel/FileSystem/SysFS/Subsystems/Kernel/Processes.cpp @@ -81,7 +81,6 @@ ErrorOr<void> SysFSOverallProcesses::try_generate(KBufferBuilder& builder) } else { TRY(process_object.add("tty"sv, "")); } - TRY(process_object.add("nfds"sv, process.fds().with_shared([](auto& fds) { return fds.open_count(); }))); TRY(process.name().with([&](auto& process_name) { return process_object.add("name"sv, process_name->view()); })); TRY(process_object.add("executable"sv, process.executable() ? TRY(process.executable()->try_serialize_absolute_path())->view() : ""sv)); |