mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
Force update when executable was recently deleted/replaced
This commit is contained in:
parent
bf07c713ba
commit
51ecc62d92
@ -1160,10 +1160,14 @@ static bool LinuxProcessList_readCmdlineFile(Process* process, openat_arg_t proc
|
||||
const size_t filenameLen = strlen(filename);
|
||||
|
||||
if (filenameLen > markerLen) {
|
||||
bool oldExeDeleted = process->procExeDeleted;
|
||||
|
||||
process->procExeDeleted = String_eq(filename + filenameLen - markerLen, deletedMarker);
|
||||
|
||||
if (process->procExeDeleted)
|
||||
filename[filenameLen - markerLen] = '\0';
|
||||
|
||||
process->mergedCommand.exeChanged |= oldExeDeleted ^ process->procExeDeleted;
|
||||
}
|
||||
|
||||
Process_updateExe(process, filename);
|
||||
|
Loading…
Reference in New Issue
Block a user