mirror of https://github.com/xzeldon/htop.git
Merge branch 'hishamhm-pull-970'
This commit is contained in:
commit
fed14a584d
|
@ -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) {
|
||||||
|
if (process->state == 'Z') {
|
||||||
|
process->basenameOffset = 0;
|
||||||
|
} else {
|
||||||
((LinuxProcess*)process)->isKernelThread = true;
|
((LinuxProcess*)process)->isKernelThread = true;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
} else if (amtRead < 0) {
|
} else if (amtRead < 0) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue