summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2023-04-21 10:33:32 +0200
committerAndreas Kling <kling@serenityos.org>2023-04-21 13:55:23 +0200
commit12ce6ef3d72e03b01c218bc3971c709f9069947d (patch)
treea923b93c4f9f848e6961eb080ffd2248d2df01fd /Userland
parentce483fb2c9f029d304df587b5fbdcf60b10b1612 (diff)
downloadserenity-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 'Userland')
-rw-r--r--Userland/Libraries/LibCore/ProcessStatisticsReader.cpp1
-rw-r--r--Userland/Libraries/LibCore/ProcessStatisticsReader.h1
-rw-r--r--Userland/Utilities/top.cpp2
3 files changed, 0 insertions, 4 deletions
diff --git a/Userland/Libraries/LibCore/ProcessStatisticsReader.cpp b/Userland/Libraries/LibCore/ProcessStatisticsReader.cpp
index ccb423e7c7..651e3ad264 100644
--- a/Userland/Libraries/LibCore/ProcessStatisticsReader.cpp
+++ b/Userland/Libraries/LibCore/ProcessStatisticsReader.cpp
@@ -36,7 +36,6 @@ ErrorOr<AllProcessesStatistics> ProcessStatisticsReader::get_all(SeekableStream&
process.uid = process_object.get_u32("uid"sv).value_or(0);
process.gid = process_object.get_u32("gid"sv).value_or(0);
process.ppid = process_object.get_u32("ppid"sv).value_or(0);
- process.nfds = process_object.get_u32("nfds"sv).value_or(0);
process.kernel = process_object.get_bool("kernel"sv).value_or(false);
process.name = process_object.get_deprecated_string("name"sv).value_or("");
process.executable = process_object.get_deprecated_string("executable"sv).value_or("");
diff --git a/Userland/Libraries/LibCore/ProcessStatisticsReader.h b/Userland/Libraries/LibCore/ProcessStatisticsReader.h
index 8d79d69bd1..ffdd8a69dc 100644
--- a/Userland/Libraries/LibCore/ProcessStatisticsReader.h
+++ b/Userland/Libraries/LibCore/ProcessStatisticsReader.h
@@ -43,7 +43,6 @@ struct ProcessStatistics {
uid_t uid;
gid_t gid;
pid_t ppid;
- unsigned nfds;
bool kernel;
DeprecatedString name;
DeprecatedString executable;
diff --git a/Userland/Utilities/top.cpp b/Userland/Utilities/top.cpp
index 0f759c9c70..8751936079 100644
--- a/Userland/Utilities/top.cpp
+++ b/Userland/Utilities/top.cpp
@@ -46,7 +46,6 @@ struct ThreadData {
uid_t uid;
gid_t gid;
pid_t ppid;
- unsigned nfds;
DeprecatedString name;
DeprecatedString tty;
size_t amount_virtual;
@@ -105,7 +104,6 @@ static ErrorOr<Snapshot> get_snapshot()
thread_data.uid = process.uid;
thread_data.gid = process.gid;
thread_data.ppid = process.ppid;
- thread_data.nfds = process.nfds;
thread_data.name = process.name;
thread_data.tty = process.tty;
thread_data.amount_virtual = process.amount_virtual;