Call makeCommandStr on all platforms

This commit is contained in:
Benny Baumann
2021-04-18 18:10:04 +02:00
committed by BenBE
parent bcb18ef822
commit a61a2e6d47
9 changed files with 28 additions and 11 deletions

View File

@ -1425,15 +1425,6 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, openat_arg_
}
}
}
/* (Re)Generate the Command string, but only if the process is:
* - not a kernel thread, and
* - not a zombie or it became zombie under htop's watch, and
* - not a user thread or if showThreadNames is not set */
if (!Process_isKernelThread(proc) &&
(proc->state != 'Z' || proc->mergedCommand.str) &&
(!Process_isUserlandThread(proc) || !settings->showThreadNames)) {
Process_makeCommandStr(proc);
}
#ifdef HAVE_DELAYACCT
if (settings->flags & PROCESS_FLAG_LINUX_DELAYACCT) {