From d9240999e9503fc975f728217b3d06a5f0ed4196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 5 Jan 2021 14:53:07 +0100 Subject: 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. --- solaris/SolarisProcessList.c | 1 - 1 file changed, 1 deletion(-) (limited to 'solaris') 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 -- cgit v1.2.3