diff options
author | Daniel Lange <DLange@git.local> | 2022-06-01 08:00:55 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2022-06-01 08:00:55 +0200 |
commit | abaec509e6773908720124124ff24ad34f2b1321 (patch) | |
tree | e0f63f6bee219e2b642d7e072ce28ffe9c081626 /linux/LinuxProcessList.c | |
parent | f156dfecd59d415ea860e2b4dff6be58b6ef3c60 (diff) | |
parent | 2999fff88eef0cad39dbbc0054bdf8af9a92215e (diff) |
Merge branch 'cmdline-render-cache-rework' of BenBE/htop
Diffstat (limited to 'linux/LinuxProcessList.c')
-rw-r--r-- | linux/LinuxProcessList.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index e799661a..45b045c8 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -1351,7 +1351,8 @@ static bool LinuxProcessList_readCmdlineFile(Process* process, openat_arg_t proc if (process->procExeDeleted) filename[filenameLen - markerLen] = '\0'; - process->mergedCommand.exeChanged |= oldExeDeleted ^ process->procExeDeleted; + if (oldExeDeleted != process->procExeDeleted) + process->mergedCommand.lastUpdate = 0; } Process_updateExe(process, filename); @@ -1557,7 +1558,8 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, openat_arg_ lp->m_lrs = (proc->isUserlandThread && parent) ? ((const LinuxProcess*)parent)->m_lrs : 0; } - proc->mergedCommand.exeChanged |= prev ^ proc->usesDeletedLib; + if (prev != proc->usesDeletedLib) + proc->mergedCommand.lastUpdate = 0; } if ((ss->flags & PROCESS_FLAG_LINUX_SMAPS) && !Process_isKernelThread(proc)) { |