Skip to content

Commit

Permalink
Properly identify zombie processes
Browse files Browse the repository at this point in the history
This closes issue hishamhm#930.
  • Loading branch information
Jure Oder committed Dec 14, 2019
1 parent 402e46b commit 88c9ebb
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 @@ -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;
Expand Down

0 comments on commit 88c9ebb

Please sign in to comment.