Skip to content

Commit

Permalink
Merge branch 'hishamhm-pull-970'
Browse files Browse the repository at this point in the history
  • Loading branch information
natoscott committed Aug 20, 2020
2 parents cca07e9 + 88c9ebb commit fed14a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion linux/LinuxProcessList.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fed14a5

Please sign in to comment.