diff options
author | Robin Burchell <robin+git@viroteck.net> | 2019-07-17 21:24:47 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-18 07:23:26 +0200 |
commit | 57da716be087e8d2105c88f9d865312ad4bd9b6f (patch) | |
tree | 7b2db27f6266fbba3157ac6192766cf6dbcbe20f /Libraries | |
parent | a9d1a86e6edc3fa3089a69f15d8ced52e8578d43 (diff) | |
download | serenity-57da716be087e8d2105c88f9d865312ad4bd9b6f.zip |
ps: Port to using CProcessStatisticsReader and /proc/all
Drop /proc/summary in the process.
We only needed one new field here, thankfully, so this was quite straightforward.
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibCore/CProcessStatisticsReader.cpp | 1 | ||||
-rw-r--r-- | Libraries/LibCore/CProcessStatisticsReader.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibCore/CProcessStatisticsReader.cpp b/Libraries/LibCore/CProcessStatisticsReader.cpp index 74331797df..d0e521762c 100644 --- a/Libraries/LibCore/CProcessStatisticsReader.cpp +++ b/Libraries/LibCore/CProcessStatisticsReader.cpp @@ -28,6 +28,7 @@ HashMap<pid_t, CProcessStatistics> CProcessStatisticsReader::get_all() process.pid = process_object.get("pid").to_u32(); process.times_scheduled = process_object.get("times_scheduled").to_u32(); process.pgid = process_object.get("pgid").to_u32(); + process.pgp = process_object.get("pgp").to_u32(); process.sid = process_object.get("sid").to_u32(); process.uid = process_object.get("uid").to_u32(); process.gid = process_object.get("gid").to_u32(); diff --git a/Libraries/LibCore/CProcessStatisticsReader.h b/Libraries/LibCore/CProcessStatisticsReader.h index 034b97a363..1e15dbc560 100644 --- a/Libraries/LibCore/CProcessStatisticsReader.h +++ b/Libraries/LibCore/CProcessStatisticsReader.h @@ -9,6 +9,7 @@ struct CProcessStatistics { pid_t pid; unsigned times_scheduled; unsigned pgid; + unsigned pgp; unsigned sid; uid_t uid; gid_t gid; |