diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index 5cbaee6a..64a4ffeb 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -763,7 +763,11 @@ static bool LinuxProcessList_readCmdlineFile(Process* process, const char* dirna int tokenEnd = 0; int lastChar = 0; if (amtRead == 0) { - ((LinuxProcess*)process)->isKernelThread = true; + if (process->state == 'Z') { + process->basenameOffset = 0; + } else { + ((LinuxProcess*)process)->isKernelThread = true; + } return true; } else if (amtRead < 0) { return false;