summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcessList.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-27 15:11:37 +0100
committerBenBE <BenBE@geshi.org>2021-01-30 14:21:26 +0100
commit03d6345c891b93b4658481f891fa2af5ce1c951b (patch)
tree889989b087659b88a02d55594d755a3904fe41d4 /linux/LinuxProcessList.c
parent93378b9ee5de9b1087dea259c3d5f98fc941bb0a (diff)
Process: document process fields
Drop unused fields 'flags' and 'exit_signal'
Diffstat (limited to 'linux/LinuxProcessList.c')
-rw-r--r--linux/LinuxProcessList.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
index bf11aa15..ed512df8 100644
--- a/linux/LinuxProcessList.c
+++ b/linux/LinuxProcessList.c
@@ -317,8 +317,10 @@ static bool LinuxProcessList_readStatFile(Process* process, openat_arg_t procFd,
location += 1;
process->tpgid = strtol(location, &location, 10);
location += 1;
- process->flags = strtoul(location, &location, 10);
- location += 1;
+
+ /* Skip flags */
+ location = strchr(location, ' ') + 1;
+
process->minflt = strtoull(location, &location, 10);
location += 1;
lp->cminflt = strtoull(location, &location, 10);
@@ -351,8 +353,10 @@ static bool LinuxProcessList_readStatFile(Process* process, openat_arg_t procFd,
for (int i = 0; i < 15; i++) {
location = strchr(location, ' ') + 1;
}
- process->exit_signal = strtol(location, &location, 10);
- location += 1;
+
+ /* Skip exit_signal */
+ location = strchr(location, ' ') + 1;
+
assert(location != NULL);
process->processor = strtol(location, &location, 10);

© 2014-2024 Faster IT GmbH | imprint | privacy policy