Merge branch 'hishamhm-pull-970'

This commit is contained in:
Nathan Scott 2020-08-20 15:33:30 +10:00
commit fed14a584d
1 changed files with 5 additions and 1 deletions

View File

@ -763,7 +763,11 @@ static bool LinuxProcessList_readCmdlineFile(Process* process, const char* dirna
int tokenEnd = 0; int tokenEnd = 0;
int lastChar = 0; int lastChar = 0;
if (amtRead == 0) { if (amtRead == 0) {
((LinuxProcess*)process)->isKernelThread = true; if (process->state == 'Z') {
process->basenameOffset = 0;
} else {
((LinuxProcess*)process)->isKernelThread = true;
}
return true; return true;
} else if (amtRead < 0) { } else if (amtRead < 0) {
return false; return false;