diff options
author | Nathan Scott <nathans@redhat.com> | 2020-08-20 15:33:30 +1000 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2020-08-20 15:33:30 +1000 |
commit | fed14a584d02ce8674ce32b5d09a254588a363d3 (patch) | |
tree | cb0f77c0d59025c3c3ed74316325de6a09a6d63c | |
parent | cca07e9bc9833c829da7f05baa0d0a39b9b78bb8 (diff) | |
parent | 88c9ebb8f725a9430bbb82b810d8ac6373b86131 (diff) |
Merge branch 'hishamhm-pull-970'
-rw-r--r-- | linux/LinuxProcessList.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index 5cbaee6a..64a4ffeb 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -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; |