summaryrefslogtreecommitdiffstats
path: root/solaris
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-05 14:53:07 +0100
committerBenBE <BenBE@geshi.org>2021-01-11 20:12:34 +0100
commitd9240999e9503fc975f728217b3d06a5f0ed4196 (patch)
tree8eb7c17f6126af48aed5dc20b431495adb780386 /solaris
parent70f48f1f44bf419aac77de8664816a17122c8b29 (diff)
Process: drop commLen
It is only used on Linux to optimize memory handling in case the command changes to a smaller-or-equal string. This "optimization" however causes more code bloat and maintenance cost on string handling issues than it gains.
Diffstat (limited to 'solaris')
-rw-r--r--solaris/SolarisProcessList.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/solaris/SolarisProcessList.c b/solaris/SolarisProcessList.c
index 2ba23ac5..1f24c9ab 100644
--- a/solaris/SolarisProcessList.c
+++ b/solaris/SolarisProcessList.c
@@ -351,7 +351,6 @@ int SolarisProcessList_walkproc(psinfo_t* _psinfo, lwpsinfo_t* _lwpsinfo, void*
sproc->zname = SolarisProcessList_readZoneName(spl->kd, sproc);
proc->user = UsersTable_getRef(pl->usersTable, proc->st_uid);
proc->comm = xStrdup(_psinfo->pr_fname);
- proc->commLen = strnlen(_psinfo->pr_fname, PRFNSZ);
}
// End common code pass 1

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