Properly identify zombie processes

This closes issue #930.
This commit is contained in:
Jure Oder 2019-12-13 13:05:28 +01:00
parent 402e46bb82
commit 88c9ebb8f7
1 changed files with 5 additions and 1 deletions

View File

@ -692,7 +692,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;